resFac = new ResourceResolverFactoryImpl(commonFactory, /* TODO: using Bundle */ null, null);
resResolver = new ResourceResolverImpl(commonFactory, new ResourceResolverContext(false, null, new ResourceAccessSecurityTracker()));
}
@Test public void testClose() throws Exception {
final ResourceResolver rr = new ResourceResolverImpl(commonFactory, new ResourceResolverContext(false, null, new ResourceAccessSecurityTracker()));
assertTrue(rr.isLive());
rr.close();
assertFalse(rr.isLive());
// close is always allowed to be called
rr.close();