### Question:
KeyboardControlImpl extends AbstractCanvasControl<AbstractCanvas> implements KeyboardControl<AbstractCanvas, ClientSession> { public void setKeyEventHandlerEnabled(final boolean enabled) { this.keyEventHandler.setEnabled(enabled); } @Inject  KeyboardControlImpl(final SessionManager clientSessionManager,
                               final KeyEventHandler keyEventHandler); @Override KeyboardControl<AbstractCanvas, ClientSession> addKeyShortcutCallback(final KeyShortcutCallback shortcutCallback); void setKeyEventHandlerEnabled(final boolean enabled); @Override void bind(final ClientSession session);  }### Answer:
@Test public void testSetKeyEventHandlerEnabled() { tested.setKeyEventHandlerEnabled(true); verify(keyEventHandler, times(1)).setEnabled(eq(true)); }