@Test
public void getFactoryByTypeIriTest() throws Exception {

    Optional<OrmFactory<? extends Thing>> result = registry.getFactoryOfType(thingIRI);
    assertTrue(result.isPresent());
    assertEquals(thingFactory, result.get());
    Optional<OrmFactory<? extends Thing>> result2 = registry.getFactoryOfType(aIRI);
    assertTrue(result2.isPresent());
    assertEquals(aFactory, result2.get());
    Optional<OrmFactory<? extends Thing>> result3 = registry.getFactoryOfType(bIRI);
    assertTrue(result3.isPresent());
    assertEquals(bFactory, result3.get());
    Optional<OrmFactory<? extends Thing>> result4 = registry.getFactoryOfType(cIRI);
    assertTrue(result4.isPresent());
    assertEquals(cFactory, result4.get());
}