### Question:
ImportDataObjectModal extends Elemental2Modal<ImportDataObjectModal.View> { public void hide(final List<DataObject> importedDataObjects) { if (!Objects.isNull(getDataObjectsConsumer())) { getDataObjectsConsumer().accept(importedDataObjects); } superHide(); } @Inject  ImportDataObjectModal(final View view,
                                 final DMNClientServicesProxy client); Consumer<List<DataObject>> getDataObjectsConsumer(); void setup(final Consumer<List<DataObject>> dataObjectsConsumer); void hide(final List<DataObject> importedDataObjects); void show(final List<String> existingDataTypes); List<String> getExistingDataTypes();  }### Answer:
@Test public void testHide() { final List<DataObject> importedObjects = mock(List.class); final Consumer<List<DataObject>> consumer = mock(Consumer.class); doNothing().when(modal).callSuperSetup(); doNothing().when(modal).superHide(); modal.setup(consumer); modal.hide(importedObjects); verify(consumer).accept(importedObjects); verify(modal).superHide(); }