@Test
void transform() {

    final Generator generator = Generator.forJava();
    final XmlDeclarationView xmlDeclarationView = new XmlDeclarationView();
    final XmlDeclaration xmlDeclaration = XmlDeclaration.of();
    assertTrue(xmlDeclarationView.transform(generator, xmlDeclaration).isPresent());
}