MavenWorkspaceReader implements WorkspaceReader { public WorkspaceRepository getRepository() { return workspaceRepository; } 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 testGetRepository() throws MavenWorkspaceReaderException { MavenWorkspaceReader workspaceReader = new MavenWorkspaceReader(workspaceFilesystem, mavenBooter.modelProcessor()); assertThat(workspaceReader.getRepository().getKey(), Matchers.<Object>is("com.sonatype.example:projB:pom:1.0.0-SNAPSHOT")); }