### Question:
ActivityDataIOEditor implements ActivityDataIOEditorView.Presenter { public void setDisallowedPropertyNames(final List<String> disallowedPropertyNames) { Set<String> propertyNames = new HashSet<>(); if (disallowedPropertyNames != null) { for (String name : disallowedPropertyNames) { propertyNames.add(name.toLowerCase()); } } view.setInputAssignmentsDisallowedNames(propertyNames); }  @PostConstruct void init(); void setCallback(final GetDataCallback callback); @Override void handleOkClick(); @Override void handleCancelClick(); void setDataTypes(final List<String> dataTypes,
                             final List<String> dataTypeDisplayNames); void setAssignmentData(final AssignmentData assignmentData); void configureDialog(final String taskName,
                                final boolean hasInputVars,
                                final boolean isSingleInputVar,
                                final boolean hasOutputVars,
                                final boolean isSingleOutputVar); void setDisallowedPropertyNames(final List<String> disallowedPropertyNames); void setProcessVariables(final List<String> processVariables); void setInputAssignmentRows(final List<AssignmentRow> inputAssignmentRows); void setOutputAssignmentRows(final List<AssignmentRow> outputAssignmentRows); void setReadOnly(final boolean readOnly); void show(); @Override ListBoxValues.ValueTester dataTypesTester(); @Override ListBoxValues.ValueTester processVarTester();  }### Answer:
@Test public void testDisallowedPropertyNames() { List<String> disallowedNames = new ArrayList<String>(); disallowedNames.add("Abc"); disallowedNames.add("xyZ"); ioEditor.setDisallowedPropertyNames(disallowedNames); verify(ioEditorView).setInputAssignmentsDisallowedNames(setCaptor.capture()); assertEquals("should be 2 disallowed names", 2, setCaptor.getValue().size()); assertTrue("disallowed names should contain: abc", setCaptor.getValue().contains("abc")); assertTrue("disallowed names should contain: xyz", setCaptor.getValue().contains("xyz")); }
@Test public void testNullDisallowedPropertyNames() { Set<String> disallowedNames = new HashSet<String>(); ioEditor.setDisallowedPropertyNames(null); verify(ioEditorView).setInputAssignmentsDisallowedNames(disallowedNames); }