@Test
public void testDoGetShouldCallWriteErrorToResponseBecauseOfWrongParameterFormat() throws ServletException, IOException {

    //GIVEN
    given(request.getParameter(PARAMETER_CONSTANS_DIRECTION)).willReturn("dawdaw");
    given(response.getWriter()).willReturn(writer);
    //WHEN
    underTest.doGet(request, response);
    //THEN
    verify(response).setStatus(HttpServletResponse.SC_NOT_FOUND);
    verify(response).getWriter();
}