public void test() throws Exception {
final URL resource = getClass().getClassLoader().getResource("uas_older.xml");
final String expected = formatSimilar(UrlUtil.read(resource, Charsets.UTF_8)).replaceAll("/si </regstring>", "/si</regstring>");
final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
XmlDataWriter.write(new TestXmlDataStore().getData(), outputStream);
final String actual = new String(outputStream.toByteArray(), "UTF-8");
assertThat(formatSimilar(actual)).isEqualTo(expected);
}