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