SimpleListElementAction extends ProjectAction { @Override public void actionPerformed(ActionEvent e) { header.selectElement(image, name); } @AssistedInject  SimpleListElementAction(AppContext appContext,
                                   @NotNull @Assisted String name,
                                   @NotNull @Assisted SVGResource image,
                                   @NotNull @Assisted DropDownHeaderWidget header); @Override void actionPerformed(ActionEvent e); @NotNull String getName(); @NotNull SVGResource getImage();  }
@Test public void actionShouldBePerformed() throws Exception { action.actionPerformed(actionEvent); verify(header).selectElement(image, TEXT); }