CatnapWrappingView implements View, WrappingView<CatnapView> { @Override public String getContentType() { return catnapView.getContentType(); } CatnapWrappingView(final CatnapView view);  CatnapWrappingView(final CatnapView view, final String modelName); @Override void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response); void setContentTypeHeader(HttpServletResponse response); com.github.gregwhitaker.catnap.core.context.HttpStatus httpStatus(HttpServletRequest request); Object extractResult(Map<String, ?> model); @Override String getContentType(); @Override String getCharacterEncoding(); @Override CatnapView getWrappedView(); @Override String getModelName(); static final String DEFAULT_MODELNAME; }
@Test public void getContentTypeReturnsContentTypeOfWrappedView() { assertEquals("application/json", new CatnapWrappingView(new JsonView()).getContentType()); }