final InjectResourceFactory factory = new InjectResourceFactory(beanProvider);
final Map<String, ResourceModel> pathRootResourceMap =
buildResourceModels(PhotoResource.class, AlbumResource.class, AlbumEntryResource.class);
factory.setRootResources(pathRootResourceMap);
_photoRes = factory.create(PhotoResource.class);
Assert.assertNotNull(_photoRes);
Assert.assertNotNull(_photoRes.getDb());
_albumRes = factory.create(AlbumResource.class);
Assert.assertNotNull(_albumRes);