@Test
public void splitOptionsAndParameters() {

	VMCommandLine.saveVMParameters(VMCommandLineTest.class, commandLine);
	VMCommandLine.splitOptionsAndParameters(optionDefinitions);
	Map<String,List<Object>> options = VMCommandLine.getCommandLineOptions();
	String[] parameters = VMCommandLine.getCommandLineParameters();
	List<Object> values;
	
	assertNotNull(options);
	assertEquals(5, options.size());
	
	assertTrue(options.containsKey("D"));  //$NON-NLS-1$
	values = options.get("D");  //$NON-NLS-1$
	assertNotNull(values);
	assertEquals(1, values.size());
	assertEquals(true, values.get(0));
	assertTrue(options.containsKey("v"));  //$NON-NLS-1$
	values = options.get("v");  //$NON-NLS-1$
	assertNotNull(values);
	assertEquals(1, values.size());
	assertEquals((long)3, values.get(0));
	assertTrue(options.containsKey("F"));  //$NON-NLS-1$
	values = options.get("F");  //$NON-NLS-1$
	assertNotNull(values);
	assertEquals(2, values.size());
	assertEquals(0., values.get(0));
	assertEquals(123., values.get(1));
	assertTrue(options.containsKey("b"));  //$NON-NLS-1$
	values = options.get("b");  //$NON-NLS-1$
	assertNotNull(values);
	assertEquals(1, values.size());
	assertEquals(false, values.get(0));
	assertTrue(options.containsKey("S"));  //$NON-NLS-1$
	values = options.get("S");  //$NON-NLS-1$
	assertNotNull(values);
	assertEquals(1, values.size());
	assertEquals("-b", values.get(0));  //$NON-NLS-1$
	
	values = options.get("nob");  //$NON-NLS-1$
	assertNull(values);
	assertNotNull(parameters);
	assertEquals(4, parameters.length);
	assertEquals("clean", parameters[0]);  //$NON-NLS-1$
	assertEquals("package", parameters[1]);  //$NON-NLS-1$
	assertEquals("installters", parameters[2]);  //$NON-NLS-1$
	assertEquals("-v", parameters[3]);  //$NON-NLS-1$
}