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