### Question:
TridentDataSource implements ReasonerDataSource { @Override public void accept(DataSourceConfigurationVisitor visitor) throws IOException { visitor.visit(this); } TridentDataSource(final String filePath); String getPath(); String getName(); @Override Fact getDeclarationFact(); @Override String toString(); @Override void accept(DataSourceConfigurationVisitor visitor); @Override int hashCode(); @Override boolean equals(final Object obj); static final String declarationPredicateName; }### Answer:
@Test public void visit_succeeds() throws IOException { final DataSourceConfigurationVisitor visitor = Mockito.spy(DataSourceConfigurationVisitor.class); final TridentDataSource tridentDataSource = new TridentDataSource("trident/path"); tridentDataSource.accept(visitor); Mockito.verify(visitor).visit(tridentDataSource); }