@Test
public void testPrepareParameter() throws Exception {

	// Known types
	String input = "whatever";
	Assert.assertEquals( input, DockerUtils.prepareParameter( input, String.class ));
	input = "50";
	Assert.assertEquals( 50, DockerUtils.prepareParameter( input, int.class ));
	Assert.assertEquals( 50L, DockerUtils.prepareParameter( input, long.class ));
	input = "true";
	Assert.assertEquals( true, DockerUtils.prepareParameter( input, boolean.class ));
	input = "test1, test2,test3,   test4  ";
	Object result = DockerUtils.prepareParameter( input, String[].class );
	Assert.assertEquals( String[].class, result.getClass());
	String[] expectedString = { "test1", "test2", "test3", "test4" };
	Assert.assertTrue( Arrays.deepEquals( expectedString, (String[]) result ));
	input = "AUDIT_CONTROL, SYS_PTRACE";
	Capability[] expectedCapabilities = new Capability[] {
			Capability.AUDIT_CONTROL,
			Capability.SYS_PTRACE
	};
	result = DockerUtils.prepareParameter( input, Capability[].class );
	Assert.assertEquals( Capability[].class, result.getClass());
	Assert.assertTrue( Arrays.deepEquals( expectedCapabilities, (Capability[]) result ));
	// Unknown types
	input = "0.4f";
	Assert.assertEquals( input, DockerUtils.prepareParameter( input, double.class ));
}