WorkspaceProject implements Cacheable { public Path getRootPath() { return this.getBranch().getPath(); } WorkspaceProject();  WorkspaceProject(final OrganizationalUnit organizationalUnit,
                            final Repository repository,
                            final Branch branch,
                            final Module mainModule); OrganizationalUnit getOrganizationalUnit(); Repository getRepository(); Branch getBranch(); Module getMainModule(); String getEncodedIdentifier(); @Override boolean requiresRefresh(); String getName(); @Override void markAsCached(); Path getRootPath(); Space getSpace(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void getRootPath() { final Branch branch = mock(Branch.class); final Path branchPath = mock(Path.class); when(branch.getPath()).thenReturn(branchPath); final WorkspaceProject workspaceProject = new WorkspaceProject(mock(OrganizationalUnit.class), mock(Repository.class), branch, mock(Module.class)); assertEquals(branchPath, workspaceProject.getRootPath()); }