@Test
public void testOnPassingInvalidParamters() {

    Mockito.when(request.getRequestURI()).thenReturn("/pap/");
    Mockito.when(request.getHeader("Authorization")).thenReturn("Basic dGVzdHBhcDphbHBoYTE789==");
    try {
        papFilter.doFilter(request, response, filter);
        assertEquals(0, response.getStatus());
    } catch (Exception e) {
        fail();
    }
}