### Question:
ClientFormGenerationManager { void onFormGenerationFailureEvent(@Observes FormGenerationFailureEvent event) { formGenerationNotifier.showError(translationService.getValue(FormsClientConstants.FormsGenerationFailure, event.getName())); } protected  ClientFormGenerationManager(); @Inject  ClientFormGenerationManager(final ClientTranslationService translationService,
                                       final FormGenerationNotifier formGenerationNotifier,
                                       final Caller<FormGenerationService> formGenerationService); void call(final Consumer<FormGenerationService> service);  }### Answer:
@Test public void testOnFormGenerationFailure() { final FormGenerationFailureEvent event = mock(FormGenerationFailureEvent.class); when(event.getName()).thenReturn("name1"); tested.onFormGenerationFailureEvent(event); verify(translationService, times(1)).getValue(eq(FormsClientConstants.FormsGenerationFailure), eq("name1")); verify(formGenerationNotifier, times(1)).showError(anyString()); verify(formGenerationNotifier, never()).showNotification(anyString()); }