OWLJavaFileGenerator implements OntologyModelBuilder, JavaFileGenerator { @Override public ObjectConnection getConnection() throws RepositoryException { return anno4j.getObjectRepository().getConnection(); } OWLJavaFileGenerator();  OWLJavaFileGenerator(Anno4j anno4j); @Override void addRDF(InputStream rdfInput, String format); @Override void addRDF(String url, String format); @Override void addRDF(InputStream rdfInput, String base, String format); @Override void addRDF(String url, String base, String format); @Override void addRDF(String url); @Override Collection<BuildableRDFSClazz> getClazzes(); @Override Collection<BuildableRDFSProperty> getProperties(); @Override ValidityReport validate(); @Override void build(); @Override ObjectConnection getConnection(); @Override void generateJavaFiles(OntGenerationConfig config, File outputDirectory);  }
@Test public void testOWLEquivalence() throws Exception { ObjectConnection connection = modelBuilder.getConnection(); OWLClazz drink = connection.findObject(OWLClazz.class, new URIImpl("http: OWLClazz beverage = connection.findObject(OWLClazz.class, new URIImpl("http: assertTrue((drink != null && beverage == null) || (drink == null && beverage != null)); }