POM { public boolean isMultiModule() { return "pom".equals(packaging); } POM();  POM(final GAV gav);  POM(final String name,
               final String description,
               final String url,
               final GAV gav
               );  POM(final String name,
               final String description,
               final String url,
               final GAV gav,
               final boolean multiModule); GAV getGav(); Dependencies getDependencies(); void setDependencies(List<Dependency> dependencies); void addRepository(MavenRepository mavenRepository); List<MavenRepository> getRepositories(); String getModelVersion(); String getName(); void setName(String name); String getDescription(); void setDescription(String description); String getUrl(); void setUrl(String url); GAV getParent(); void setParent(GAV parent); List<String> getModules(); Build getBuild(); void setBuild(Build build); void setModules(List<String> modules); boolean isMultiModule(); void setPackaging(String packaging); String getPackaging(); boolean hasParent(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void isMultiModuleTest() { POM plainPom = new POM(), pomWithGav = new POM(new GAV()), pomWithDetails = new POM("name", "description", "url", new GAV()), multimodulePom = new POM("name", "description", "url", new GAV(), true); assertThat(plainPom.isMultiModule()).isFalse(); assertThat(pomWithGav.isMultiModule()).isFalse(); assertThat(pomWithDetails.isMultiModule()).isFalse(); assertThat(multimodulePom.isMultiModule()).isTrue(); }