when(factory.getObjectType()).thenReturn(PersonRepository.class);
when(factory.getEntityInformation()).thenReturn(entityInformation);
when(factory.getRepositoryInformation()).thenReturn(information);
GenericApplicationContext context = new GenericApplicationContext(beanFactory);
context.refresh();
assertThat(context.getBeansOfType(RepositoryFactoryInformation.class).values().size(), is(1));
DomainClassConverter converter = new DomainClassConverter(new DefaultConversionService());
converter.setApplicationContext(context);