### Question:
MondrianConnectionImpl extends OlapClientConnectionImpl implements MondrianConnection { @Override public void accept(ResourceVisitor visitor) { super.accept(visitor); Stream.of(schema, dataSource).filter(Objects::nonNull).forEach(o -> o.accept(visitor)); }  ResourceReference getDataSource(); ResourceReference getSchema(); void setDataSource(ReportDataSource dataSource); void setDataSourceReference(String referenceURI); void setDataSource(ResourceReference dataSource); void setSchema(ResourceReference schema); void setSchema(FileResource schema); void setSchemaReference(String referenceURI); @Override void accept(ResourceVisitor visitor);  }### Answer:
@Test public void accept_nullDependencies_success() { MondrianConnectionImpl mondrianConnection = new MondrianConnectionImpl(); mondrianConnection.accept(visitor); verify(visitor, times(1)).visit(mondrianConnection); }