ReportContentRepository implements Repository { public ContentLocation getRoot() throws ContentIOException { return root; } ReportContentRepository( final RepositoryFile outputFolder ); ContentLocation getRoot(); MimeRegistry getMimeRegistry();  }
@Test public void getRoot() throws Exception { final RepositoryFile mock = mock( RepositoryFile.class ); when( mock.getName() ).thenReturn( UUID.randomUUID().toString() ); final ReportContentRepository reportContentRepository = new ReportContentRepository( mock ); assertEquals( mock.getName(), reportContentRepository.getRoot().getName() ); }