public final class TestXmlBinding0010 extends SapphireTestCase
{
@Test
public void test() throws Exception {
final ByteArrayResourceStore byteArrayResourceStore = new ByteArrayResourceStore(
loadResourceAsStream("initial.txt"));
final XmlResourceStore xmlResourceStore = new XmlResourceStore(
byteArrayResourceStore);
final TestModelRoot root = TestModelRoot.TYPE.instantiate(new RootXmlResource(xmlResourceStore));
root.initialize();
root.resource().save();
assertEqualsIgnoreNewLineDiffs(loadResource("result.txt"), new String(byteArrayResourceStore.getContents(), UTF8));
}