### Question:
CrudComponent implements IsWidget { public void editInstance(int index) { helper.editInstance(index); } @Inject  CrudComponent(final CrudComponentView<MODEL, FORM_MODEL> view,
                         final EmbeddedFormDisplayer embeddedFormDisplayer,
                         final ModalFormDisplayer modalFormDisplayer,
                         final TranslationService translationService); void init(final CrudActionsHelper<MODEL> helper); FormDisplayer getFormDisplayer(); void createInstance(); void editInstance(int index); void deleteInstance(final int index); int getCurrentPage(); void refresh(); boolean isEmbedded(); void setEmbedded(final boolean embedded); @Override Widget asWidget(); void displayForm(final String title,
                            final IsFormView<FORM_MODEL> formView,
                            final FormDisplayer.FormDisplayerCallback callback); void displayForm(IsFormView<FORM_MODEL> formView,
                            FormDisplayerCallback callback); void restoreTable();  }### Answer:
@Test public void editInstanceCallsHelperEditInstance() { initTest(); crudComponent.editInstance(0); verify(helper).editInstance(0); }