FeatureManagerImpl implements FeatureManager { @Override public void deleteFeature(String appIdentifier, String idFeature) throws FeatureNotExistException { validatorExistFeature.checkFeatureExist(appIdentifier, idFeature); featureRepository.delete(appIdentifier,idFeature); }  @Override Feature storeFeature(String appId, Feature feature); @Override void deleteFeature(String appIdentifier, String idFeature); @Override Feature updateFeature(String appIdentifier, String idFeature, Feature feature); @Override Feature getFeatureByID(String appIdentifier, String idFeature);  }
@Test public void deleteFeatureManagerTest() throws FeatureNotExistException{ String idApplication = "9"; String idFeature = "1"; featureManagerImpl.deleteFeature(idApplication, idFeature); Mockito.verify(validatorExistFeature).checkFeatureExist(idApplication,idFeature); Mockito.verify(featureRepository).delete(idApplication,idFeature); }