### Question:
StunnerDocksHandler extends AbstractWorkbenchDocksHandler { public void onDiagramEditorMaximized(final @Observes ScreenMaximizedEvent event) { if (event.isDiagramScreen()) { refreshDocks(true, false); } } StunnerDocksHandler(); @Inject  StunnerDocksHandler(final @Any ManagedInstance<StunnerDockSupplier> dockSuppliers); @Override Collection<UberfireDock> provideDocks(final String perspectiveIdentifier); void onDiagramFocusEvent(final @Observes OnDiagramFocusEvent event); void onDiagramLoseFocusEvent(final @Observes OnDiagramLoseFocusEvent event); void onDiagramEditorMaximized(final @Observes ScreenMaximizedEvent event);  }### Answer:
@Test public void testOnDiagramEditorMaximized() { handler.onDiagramEditorMaximized(new ScreenMaximizedEvent(true)); assertTrue(handler.shouldRefreshDocks()); assertFalse(handler.shouldDisableDocks()); }
@Test public void testOnOtherEditorMaximized() { handler.onDiagramEditorMaximized(new ScreenMaximizedEvent(false)); assertFalse(handler.shouldRefreshDocks()); assertFalse(handler.shouldDisableDocks()); }