### Question:
ModuleHandler { public List<String> getModuleNames(final FiltersHolder filters) { return repositoryHandler.getModuleNames(filters); } ModuleHandler(final RepositoryHandler repositoryHandler); void store(final DbModule dbModule); List<String> getModuleNames(final FiltersHolder filters); List<String> getModuleVersions(final String name, final FiltersHolder filters); DbModule getModule(final String moduleId); void deleteModule(final String moduleId); List<DbLicense> getModuleLicenses(final String moduleId,
                                             final LicenseMatcher licenseMatcher); void promoteModule(final String moduleId); PromotionReportView getPromotionReport(final String moduleId); DbOrganization getOrganization(final DbModule module); List<DbModule> getModules(final FiltersHolder filters);  }### Answer:
@Test public void checkGetAllModuleNames(){ final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class); final ModuleHandler handler = new ModuleHandler(repositoryHandler); final FiltersHolder filters = mock(FiltersHolder.class); handler.getModuleNames(filters); verify(repositoryHandler, times(1)).getModuleNames(filters); }