@Test
public void testConfigureOptions() throws Exception {

	Map<String,String> options = new HashMap<> ();
	options.put( "cap-drop", "AUDIT_CONTROL" );
	options.put( "cap-add", "SYS_PTRACE, SYS_NICE" );
	options.put( "hostname", "hello" );
	options.put( "AttachStdin", "true" );
	options.put( "MemorySwap", "50" );
	options.put( "CpuShares", "2" );
	options.put( "Memory", "1024" );
	options.put( "env", "env1, env2, env3" );
	Map<String,String> targetProperties = new HashMap<>( 1 );
	targetProperties.put( DockerHandler.IMAGE_ID, "whatever" );
	DockerClient dockerClient = DockerUtils.createDockerClient( targetProperties );
	CreateContainerCmd cmd = dockerClient.createContainerCmd( "whatever, we won't execute it" );
	DockerUtils.configureOptions( options, cmd );
	Assert.assertTrue( cmd.isAttachStdin());
	Assert.assertEquals( "hello", cmd.getHostName());
	Assert.assertTrue( Arrays.deepEquals(
			new Capability[] { Capability.SYS_PTRACE, Capability.SYS_NICE },
			cmd.getCapAdd()));
	Assert.assertTrue( Arrays.deepEquals(
			new Capability[] { Capability.AUDIT_CONTROL },
			cmd.getCapDrop()));
	Assert.assertEquals( Long.valueOf( 50L ), cmd.getMemorySwap());
	Assert.assertEquals( Long.valueOf( 1024L ), cmd.getMemory());
	Assert.assertEquals( Integer.valueOf( 2 ), cmd.getCpuShares());
	Assert.assertTrue( Arrays.deepEquals(
			new String[] { "env1", "env2", "env3" },
			cmd.getEnv()));
}