title: Trying to manually render Spring MVC view to html. but model data does not populates
body: <p>This is how I am trying to achieve:</p>
  
  <pre><code>View pdfView = this.viewResolver.resolveViewName("documentTesting", Locale.US);
  MockHttpServletResponse mockResp = new MockHttpServletResponse();
  
  model.addAttribute("firstName", firstName);
  pdfView.render(model.asMap(), request, mockResp);
  
  String html = mockResp.getContentAsString();
  System.out.println("rendered html : " + html);
  </code></pre>