ToolContainerEditor extends Composite implements Editor<ToolContainer> { @UiHandler("deleteDeviceButton") void onDeleteDeviceButtonClicked(SelectEvent event) { deviceListEditor.deleteDevice(); } @Inject  ToolContainerEditor(ToolAdminView.ToolAdminViewAppearance appearance,
                               ToolDeviceListEditor deviceListEditor,
                               ToolVolumeListEditor containerVolumesEditor,
                               ToolVolumesFromListEditor containerVolumesFromEditor,
                               ToolImageEditor toolImageEditor); boolean isValid();  }
@Test public void testOnDeleteDeviceButtonClicked() { uut.onDeleteDeviceButtonClicked(selectEventMock); verify(toolDeviceListEditorMock).deleteDevice(); }