XmlDeclarationView implements Transform<XmlDeclaration, String>,
        HasAttributesView<XmlDeclaration> { @Override public Optional<String> transform(Generator gen, XmlDeclaration model) { return Optional.of("<?xml" + transformAttributes(gen, model) + "?>" ); }  @Override Optional<String> transform(Generator gen, XmlDeclaration model);  }
@Test void transform() { final Generator generator = Generator.forJava(); final XmlDeclarationView xmlDeclarationView = new XmlDeclarationView(); final XmlDeclaration xmlDeclaration = XmlDeclaration.of(); assertTrue(xmlDeclarationView.transform(generator, xmlDeclaration).isPresent()); }