### Question:
AbstractSelectionAwareSessionCommand extends AbstractClientSessionCommand<S> { protected void onCanvasElementsClearEvent(final @Observes CanvasElementsClearEvent event) { checkNotNull("event", event); if (checkEventContext(event)) { handleCanvasElementsClearEvent(event); } } AbstractSelectionAwareSessionCommand(final boolean enabled);   }### Answer:
@Test public void testOnCanvasElementsClearEvent() { CanvasElementsClearEvent event = new CanvasElementsClearEvent(canvasHandler); command.onCanvasElementsClearEvent(event); verify(command, times(1)).handleCanvasElementsClearEvent(event); event = new CanvasElementsClearEvent(anotherCanvasHandler); command.onCanvasElementsClearEvent(event); verify(command, never()).handleCanvasElementsClearEvent(event); }