EntityNameExtractorFactory { public static EntityNameExtractor<?> forNamedPersistentEntity(String name) { return new NamedPersistentEntityNameExtractor(name); }  static EntityNameExtractor<?> forPersistentEntity(PersistentEntity persistentEntity); static EntityNameExtractor<?> forPersistentEntity(String entityName, PersistentEntity persistentEntity); static EntityNameExtractor<?> forNamedPersistentEntity(String name);  }
@Test public void namedEntityNameExtraction() throws Exception { final EntityNameExtractor entityNameExtractor = forNamedPersistentEntity("name"); assertEquals("Domain Type Object Name", entityNameExtractor.apply(new DomainType())); }