@Test
public void testCompareConfigs() {

	// factory before non-factory
	assertEquals(1, ConfigurationCommands.compareConfigurations(createMockConfig(null, ""), createMockConfig("", ""))); 
	assertEquals(-1, ConfigurationCommands.compareConfigurations(createMockConfig("", ""), createMockConfig(null, ""))); 
	assertEquals(0, ConfigurationCommands.compareConfigurations(createMockConfig(null, ""), createMockConfig(null, "")));
	
	// compare factory first
	assertEquals(-1, ConfigurationCommands.compareConfigurations(createMockConfig("aaa", "yyy"), createMockConfig("bbb", "xxx"))); 
	assertEquals(1, ConfigurationCommands.compareConfigurations(createMockConfig("bbb", "xxx"), createMockConfig("aaa", "yyy")));
	
	// compare pid second
	assertEquals(-1, ConfigurationCommands.compareConfigurations(createMockConfig("aaa", "xxx"), createMockConfig("aaa", "yyy")));
	assertEquals(1, ConfigurationCommands.compareConfigurations(createMockConfig("aaa", "yyy"), createMockConfig("aaa", "xxx")));
	assertEquals(0, ConfigurationCommands.compareConfigurations(createMockConfig("aaa", "xxx"), createMockConfig("aaa", "xxx")));
}