@Test
public void incorrectIndex() throws IOException {

    when(urlBuilder.getIndex(request)).thenReturn(-1);
    model.doGet(request, response);
    assertEquals(HttpServletResponse.SC_NOT_FOUND, status);
    assertTrue(StringUtils.isBlank(writer.toString()));
}