### Question:
MorphActionsToolboxView extends AbstractActionsToolboxView<MorphActionsToolboxView> { @Override protected void addButton(final ButtonItem buttonItem) { gridItem.add(buttonItem); } @Inject  MorphActionsToolboxView(final LienzoGlyphRenderers glyphRenderers);   MorphActionsToolboxView(final LienzoGlyphRenderers glyphRenderers,
                            final ToolboxFactory toolboxFactory);   }### Answer:
@Test @SuppressWarnings("unchecked") public void testAddButton() { doInit(); final Consumer<MouseClickEvent> eventConsumer = mock(Consumer.class); tested.addButton(mock(Glyph.class), "title1"); super.testAddButton("title1"); }
@Test @SuppressWarnings("unchecked") public void testAddButtonIntoParent() { doInit(); final ButtonItem buttonItem = mock(ButtonItem.class); tested.addButton(buttonItem); verify(toolboxView, times(1)).add(eq(buttonGridItem)); verify(buttonGridItem, times(1)).add(buttonItem); }