POMContentHandler { public String toString(final POM pomModel) throws IOException { return toString(pomModel, new Model()); } POMContentHandler(); String toString(final POM pomModel); String toString(final POM gavModel,
                           final String originalPomAsText); POM toModel(final String pomAsString); Model convert(final POM pom,
                         final Model model); Model convert(final POM pom);  }
@Test public void testPOMContentHandlerNewProject() throws IOException { final POMContentHandler handler = new POMContentHandler(); final GAV gav = new GAV(); gav.setGroupId("org.guvnor"); gav.setArtifactId("test"); gav.setVersion("0.0.1"); final POM pom = new POM("name", "description", "url", gav); final String xml = handler.toString(pom); assertContainsIgnoreWhitespace(GAV_GROUP_ID_XML, xml); assertContainsIgnoreWhitespace(GAV_ARTIFACT_ID_XML, xml); assertContainsIgnoreWhitespace(GAV_VERSION_XML, xml); assertContainsIgnoreWhitespace(URL_XML, xml); }