@Test
public void doGet() throws IOException {

    when(urlBuilder.getIndex(request)).thenReturn(0);
    when(cache.get(resource, 0)).thenReturn(RESULT);
    model.doGet(request, response);
    assertNotEquals(HttpServletResponse.SC_NOT_FOUND, status);
    assertEquals(RESULT, writer.toString());
}