### Question:
FormGenerationToolboxAction implements ToolboxAction<AbstractCanvasHandler> { @Override @SuppressWarnings("unchecked") public ToolboxAction<AbstractCanvasHandler> onMouseClick(final AbstractCanvasHandler canvasHandler, final String uuid, final MouseClickEvent event) { formGenerationManager.call(service -> service.generateSelectedForms(canvasHandler.getDiagram(), new String[]{uuid})); return this; } @Inject  FormGenerationToolboxAction(final ClientTranslationService translationService,
                                       final ClientFormGenerationManager formGenerationManager); @Override Glyph getGlyph(final AbstractCanvasHandler canvasHandler,
                          final String uuid); @Override String getTitle(final AbstractCanvasHandler canvasHandler,
                           final String uuid); @Override @SuppressWarnings("unchecked") ToolboxAction<AbstractCanvasHandler> onMouseClick(final AbstractCanvasHandler canvasHandler,
                                                             final String uuid,
                                                             final MouseClickEvent event);  }### Answer:
@Test @SuppressWarnings("unchecked") public void testOnClick() { final MouseClickEvent event = mock(MouseClickEvent.class); tested.onMouseClick(canvasHandler, "uuid", event); verify(formGenerationManager, times(1)).call(any(Consumer.class)); verify(formGenerationService, times(1)).generateSelectedForms(eq(diagram), eq(new String[]{"uuid"})); }