ModuleHandler { public void store(final DbModule dbModule) { repositoryHandler.store(dbModule); } 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);  }
@Test public void checkStoreModule(){ final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class); final ModuleHandler handler = new ModuleHandler(repositoryHandler); final DbModule module = new DbModule(); handler.store(module); verify(repositoryHandler, times(1)).store(module); }