ViewEngineContextImpl implements ViewEngineContext { @Override public UriInfo getUriInfo() { return uriInfo; } 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 testGetUriInfo() { ViewEngineContextImpl context = new ViewEngineContextImpl(null, null, null, null, null, null, null, null, null, null, null); assertNull(context.getUriInfo()); UriInfo uriInfo = EasyMock.createMock(UriInfo.class); replay(uriInfo); context = new ViewEngineContextImpl(null, null, null, null, null, null, null, uriInfo, null, null, null); assertNotNull(context.getUriInfo()); verify(uriInfo); }