ViewEngineContextImpl implements ViewEngineContext { @Override public ResourceInfo getResourceInfo() { return resourceInfo; } ViewEngineContextImpl(String view, Models models, Object request, Object response,
                                 MultivaluedMap<String, Object> responseHeaders, OutputStream outputStream,
                                 MediaType mediaType, UriInfo uriInfo, ResourceInfo resourceInfo,
                                 Configuration configuration, Locale locale); @Override String getView(); @Override Models getModels(); @Override Locale getLocale(); @Override T getRequest(Class<T> type); @Override T getResponse(Class<T> type); @Override MultivaluedMap<String, Object> getResponseHeaders(); @Override OutputStream getOutputStream(); @Override MediaType getMediaType(); @Override UriInfo getUriInfo(); @Override ResourceInfo getResourceInfo(); @Override Configuration getConfiguration();  }
@Test public void testGetResourceInfo() { ViewEngineContextImpl context = new ViewEngineContextImpl(null, null, null, null, null, null, null, null, null, null, null); assertNull(context.getResourceInfo()); ResourceInfo resourceInfo = EasyMock.createMock(ResourceInfo.class); replay(resourceInfo); context = new ViewEngineContextImpl(null, null, null, null, null, null, null, null, resourceInfo, null, null); assertNotNull(context.getResourceInfo()); verify(resourceInfo); }