EntityTypeImpl extends AbstractIdentifiableType<X> implements EntityType<X> { @Override public String getName() { return name; } EntityTypeImpl(String name, Class<X> javaType, final IRI iri); @Override String getName(); @Override PersistenceType getPersistenceType(); @Override Class<X> getBindableJavaType(); @Override BindableType getBindableType(); @Override IRI getIRI(); InheritanceType getInheritanceType(); @Override String toString();  }
@Test void getFieldSpecificationReturnsTypesIfNameMatches() throws Exception { final EntityTypeImpl<OWLClassA> et = new EntityTypeImpl<>(className, cls, classIri); final TypesSpecification typesSpec = mock(TypesSpecification.class); when(typesSpec.getName()).thenReturn(OWLClassA.getTypesField().getName()); when(typesSpec.getJavaField()).thenReturn(OWLClassA.getTypesField()); et.addDirectTypes(typesSpec); assertEquals(typesSpec, et.getFieldSpecification(typesSpec.getName())); }