### Question:
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { boolean isValidValues() { return !isEmpty(getView().getModelNameInput()) && getDropdown().getValue().isPresent(); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide();  }### Answer:
@Test public void testIsValidValuesWhenModelNameIsBlank() { when(view.getModelNameInput()).thenReturn(""); assertFalse(modal.isValidValues()); }
@Test public void testIsValidValuesWhenDropDownIsNotPresent() { when(view.getModelNameInput()).thenReturn("name"); when(dropdown.getValue()).thenReturn(Optional.empty()); assertFalse(modal.isValidValues()); }
@Test public void testIsValidValuesWhenItReturnsTrue() { when(view.getModelNameInput()).thenReturn("name"); when(dropdown.getValue()).thenReturn(Optional.of(mock(KieAssetsDropdownItem.class))); assertTrue(modal.isValidValues()); }