@Test
public void testToXMlFormatted() throws FileNotFoundException, JAXBException, UnsupportedEncodingException {

	ToolSpec pts = ToolSpec.fromInputStream( ToolSpec.class.getResourceAsStream(KAKADU_SPEC));
	System.out.println("In = "+pts.toXMlFormatted());
	String xml = pts.toXMlFormatted();
	ToolSpec pts2 = ToolSpec.fromInputStream( new ByteArrayInputStream( xml.getBytes("UTF-8") ));
	if( ! pts.equals( pts ) ) {
		System.out.println("Out = "+pts2.toXMlFormatted());
		fail("Round-trip to XML and back lost some data.");
	}
}