### Question:
ScreenEventPublisher { protected void onPlaceMinimizedEvent(@Observes PlaceMinimizedEvent event) { diagramEditorMinimizedEventEvent.fire(new ScreenMinimizedEvent(verifyEventIdentifier(event))); } @Inject  ScreenEventPublisher(Event<ScreenMaximizedEvent> diagramEditorMaximizedEventEvent,
                                Event<ScreenMinimizedEvent> diagramEditorMinimizedEventEvent,
                                ActivityBeansCache activityBeansCache);   }### Answer:
@Test public void onPlaceMinimizedEventTest() { screenEventPublisher.onPlaceMinimizedEvent(placeMinimizedEvent); verify(diagramEditorMinimizedEventEvent, Mockito.times(1)).fire(new ScreenMinimizedEvent(true)); reset(syncBeanDef); screenEventPublisher.onPlaceMinimizedEvent(placeMinimizedEvent); verify(diagramEditorMinimizedEventEvent, Mockito.times(1)).fire(new ScreenMinimizedEvent(false)); }