SourceService implements ISourceService { @Override public List<Source> list() { return getSourceManager().list(); }  @Override int count(); @Override Source createSource(String url, String username, String password, Integer maxDownloads); @Override Source getSource(int sourceId); @Override Source getSource(SynchronizerSource synchronizerSource); @Override List<Source> getSource(List<SynchronizerSource> synchronizerSources); @Override boolean updateSource(Source source); @Override boolean deleteSource(Source source); @Override List<Source> list(); @Override List<Source> sortSources(List<Source> sources); @Override Source getBestSource(List<Source> sources);  }
@Test(dependsOnMethods = {"count"}) public void list() { List<Source> sourceList = service.list(); Assert.assertEquals(sourceList.size(), service.count()); sourceList.forEach(Assert::assertNotNull); }