### Question:
InputControlImpl extends ResourceImpl implements InputControl, InputControlsContainer { @Override public void accept(ResourceVisitor visitor) { super.accept(visitor); Stream.of(dataType, listOfValues, query).filter(java.util.Objects::nonNull). forEach(o -> o.accept(visitor)); } InputControlImpl();  InputControlImpl(InputControlImpl another); byte getInputControlType(); void setInputControlType(byte type); boolean isMandatory(); void setMandatory(boolean isMandatory); boolean isReadOnly(); void setReadOnly(boolean isReadOnly); boolean isVisible(); void setVisible(boolean visible); ResourceReference getDataType(); void setDataType(ResourceReference dataType); void setDataType(DataType dataType); void setDataTypeReference(String referenceURI); ResourceReference getListOfValues(); void setListOfValues(ResourceReference values); void setListOfValues(ListOfValues listOfValues); void setListOfValuesReference(String referenceURI); ResourceReference getQuery(); void setQuery(ResourceReference query); void setQuery(Query query); void setQueryReference(String referenceURI); String[] getQueryVisibleColumns(); List<String> getQueryVisibleColumnsAsList(); void addQueryVisibleColumn(String column); void removeQueryVisibleColumn(String column); String getQueryValueColumn(); void setQueryValueColumn(String column); Object getDefaultValue(); void setDefaultValue(Object value); List getDefaultValues(); void setDefaultValues(List values); @Override void checkSources(); @Override void setSources(Set<SourceDescriptor> sources); @Override ImmutableSet<SourceDescriptor> getSources(); @Override ResourceReference getDataSource(); @Override List<ResourceReference> getInputControls(); @Override void setInputControls(List<ResourceReference> inputControls); @Override void addInputControl(InputControl inputControl); @Override void addInputControl(ResourceReference inputControlReference); @Override void addInputControlReference(String referenceURI); @Override ResourceReference removeInputControl(int index); @Override boolean removeInputControlReference(String referenceURI); @Override InputControl removeInputControlLocal(String name); @Override boolean equals(Object o); @Override int hashCode(); @Override void accept(ResourceVisitor visitor);  }### Answer:
@Test public void accept_nullDependencies_success() { InputControlImpl inputControl = new InputControlImpl(); inputControl.accept(visitor); verify(visitor, times(1)).visit(inputControl); }