@Test
public void testCreateRepository() throws Exception {

    factory.afterPropertiesSet();
    Repository rep = (Repository) factory.getObject();
    assertEquals(rep.getDescriptor("jcr.repository.name"), "Jackrabbit");
    assertEquals(true, factory.getObject() instanceof Repository);
    assertEquals(true, factory.isSingleton());
    assertEquals(Repository.class, factory.getObjectType());
    factory.destroy();
}