@Test
public void noEntries() throws IOException {

    when(structure.get(resource)).thenReturn(null);
    model.doGet(request, response);
    assertEquals(HttpServletResponse.SC_NOT_FOUND, status);
    assertTrue(StringUtils.isBlank(writer.toString()));
}