### Question:
ImportDataObjectModal extends Elemental2Modal<ImportDataObjectModal.View> { public void setup(final Consumer<List<DataObject>> dataObjectsConsumer) { this.dataObjectsConsumer = dataObjectsConsumer; callSuperSetup(); } @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 testSetup() { final Consumer<List<DataObject>> consumer = mock(Consumer.class); final Consumer onDataObjectSelectionChanged = mock(Consumer.class); doNothing().when(modal).callSuperSetup(); doReturn(onDataObjectSelectionChanged).when(modal).getOnDataObjectSelectionChanged(); modal.setup(consumer); verify(modal).callSuperSetup(); assertEquals(consumer, modal.getDataObjectsConsumer()); }