@Test
public void test_storeToXML_and_loadFromXML() throws InvalidPropertiesFormatException, IOException {

	Properties props = new Properties();
	props.setProperty("1", "1");
	props.setProperty("1222", "222");
	props.storeToXML(System.out, "comment");
	System.out.println("\n\n");
	props.store(System.out, "comments");
	System.out.println("\n\n");
	
	Groups g = verifyXml(new FileInputStream(ResourceUtils.getFile("classpath:cn/org/rapid_framework/config/group/groups_test.xml")));		
	g.storeToXML(System.out);
	
	ByteArrayOutputStream out = new ByteArrayOutputStream();
	g.storeToXML(out);
	verifyXml(new ByteArrayInputStream(out.toByteArray()));
	
}