@Test
void testSendChallengeOnFailure() {

    this.negAuthFilter.sendChallengeOnFailure(this.response);
    Assertions.assertEquals("Negotiate", this.response.headersAdded.get("WWW-Authenticate").get(0));
    Assertions.assertEquals("NTLM", this.response.headersAdded.get("WWW-Authenticate").get(1));
    Assertions.assertEquals("close", this.response.headers.get("Connection"));
    Assertions.assertEquals(0, this.response.sc);
    Assertions.assertEquals(HttpServletResponse.SC_UNAUTHORIZED, this.response.errorCode);
    Assertions.assertTrue(this.response.isFlushed);
}