ClassNameBuilder extends IdentifierBuilder { public TypeSpec interfaceSpec(ResourceObject resource, OntGenerationConfig config) throws RepositoryException { return TypeSpec.interfaceBuilder(className(resource, config)).build(); } private  ClassNameBuilder(ObjectConnection connection); static ClassNameBuilder forObjectRepository(ObjectRepository repository); static ClassNameBuilder forObjectRepository(ObjectConnection connection); ClassName className(ResourceObject resource, OntGenerationConfig config); TypeSpec interfaceSpec(ResourceObject resource, OntGenerationConfig config);  }
@Test public void interfaceSpec() throws Exception { TypeSpec typeSpec = ClassNameBuilder.forObjectRepository(anno4j.getObjectRepository()) .interfaceSpec(person, config); assertEquals("MyPerson", typeSpec.name); }