@Test
public void testDoForbiddenResponseWithCustomReason() throws IOException {

    HttpServletResponse httpResponse = mock(HttpServletResponse.class);
    ServletHelpers.doForbidden(httpResponse, ForbiddenReason.HOST_NOT_ALLOWED);
    verify(httpResponse).setStatus(HttpServletResponse.SC_FORBIDDEN);
    verify(httpResponse).setContentLength(0);
    verify(httpResponse).setHeader(HEADER_HAWTIO_FORBIDDEN_REASON, ForbiddenReason.HOST_NOT_ALLOWED.name());
    verify(httpResponse).flushBuffer();
}