@Test
public void testWriteNull() throws Exception {

  MockHttpServletResponse response = new MockHttpServletResponse();
  ServletResponseResultWriter writer = new ServletResponseResultWriter(response, null);
  writer.write(null);
  assertEquals("", response.getContentAsString());
  assertEquals(HttpServletResponse.SC_NO_CONTENT, response.getStatus());
}