void (final String start, @Nullable final String localName, @Nullable String namespace, @Nullable String publicId, @Nullable String systemId) { XmlFileHeader expected = new XmlFileHeader(localName, namespace, publicId, systemId); XmlFile file = createXmlFile(start); assert !file.getNode().isParsed(); assertEquals(expected, DomService.getInstance().getXmlFileHeader(file)); ensureParsed(file); assert file.getNode().isParsed(); assertEquals(expected, DomService.getInstance().getXmlFileHeader(file)); }