Yes, you can test SME Server in Virtual Box or any other virtualization tool (VMWare, KVM etc...). For a simple setup, you can test with only one NIC in serveronly mode. There's no problem running it as a server&gateway with 2 NIC but this will require a bit more work and depend on the virtualization tool you're using