### Question:
FormGenerationNotifier { public void showError(final String message) { errorNotifier.accept(message); } protected  FormGenerationNotifier(); @Inject  FormGenerationNotifier(ClientTranslationService translationService);   FormGenerationNotifier(ClientTranslationService translationService, Consumer<String> messageNotifier, Consumer<String> errorNotifier); void showNotification(final String message); void showError(final String message);  }### Answer:
@Test public void testshowError() { notifier.showError(ERROR); verify(errorNotification, times(1)).accept(ERROR); verify(messageNotification, times(0)).accept(ERROR); }