MavenWorkspaceReader implements WorkspaceReader { public List<MavenModule> getMavenModules() { return mavenModules; } MavenWorkspaceReader(WorkspaceFilesystem workspaceFilesystem, ModelProcessor modelProcessor, MavenWorkspaceListener listener);  MavenWorkspaceReader(WorkspaceFilesystem workspaceFilesystem, ModelProcessor modelProcessor); WorkspaceRepository getRepository(); File findArtifact(Artifact artifact); List<String> findVersions(Artifact artifact); MavenModule getRootModule(); List<MavenModule> getMavenModules();  }
@Test public void testGetMavenModules() throws MavenWorkspaceReaderException { MavenWorkspaceReader workspaceReader = new MavenWorkspaceReader(workspaceFilesystem, mavenBooter.modelProcessor()); assertThat(workspaceReader.getMavenModules(), allOf( hasItem(IsMavenModule("com.sonatype.example", "projB", "1.0.0-SNAPSHOT")), hasItem(IsMavenModule("com.sonatype.example", "moduleB", "1.0.0-SNAPSHOT")), hasItem(IsMavenModule("com.sonatype.example", "moduleA", "1.0.0-SNAPSHOT")))); }