AbstractXmlEntityHandler implements XmlEntityExportHandler<T> { String startXmlInternal() { return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<" + rootTag + ">\n"; } protected  AbstractXmlEntityHandler(final String rootTag); @Override void startXml(final OutputStreamWriter writer); @Override void endXml(final OutputStreamWriter writer); void setPrettyPrint(final boolean prettyPrint);  }
@Test public void testStart() throws Exception { assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<root>\n", handler.startXmlInternal()); }