@Test public void testGetNestedObject() { Request request = createMock(Request.class); ApplicationContext applicationContext = createMock(ApplicationContext.class); expect(request.getApplicationContext()).andReturn(applicationContext); replay(request, applicationContext); NestedObjectExtractor<Request> extractor = new TilesApplicationContextNestedObjectExtractor(); assertEquals(applicationContext, extractor.getNestedObject(request)); verify(request, applicationContext); }
public ApplicationContext getNestedObject(Request obj) { return obj.getApplicationContext(); }
TilesApplicationContextNestedObjectExtractor implements
        NestedObjectExtractor<Request> { public ApplicationContext getNestedObject(Request obj) { return obj.getApplicationContext(); } }
TilesApplicationContextNestedObjectExtractor implements
        NestedObjectExtractor<Request> { public ApplicationContext getNestedObject(Request obj) { return obj.getApplicationContext(); }  }
TilesApplicationContextNestedObjectExtractor implements
        NestedObjectExtractor<Request> { public ApplicationContext getNestedObject(Request obj) { return obj.getApplicationContext(); }  ApplicationContext getNestedObject(Request obj); }
TilesApplicationContextNestedObjectExtractor implements
        NestedObjectExtractor<Request> { public ApplicationContext getNestedObject(Request obj) { return obj.getApplicationContext(); }  ApplicationContext getNestedObject(Request obj);  }