@Test(description = "This method tests the behaviour of the invoke method of WebAuthenticationValve when "
        + "un-secured endpoints are invoked.")
public void testInvokeUnSecuredEndpoints() {

    Request request = new TestRequest("", "test");
    Context context = new StandardContext();
    context.setPath("carbon1");
    context.addParameter("doAuthentication", String.valueOf(true));
    context.addParameter("nonSecuredEndPoints", "test, test1");
    CompositeValve compositeValve = Mockito.mock(CompositeValve.class);
    Mockito.doNothing().when(compositeValve).continueInvocation(Mockito.any(), Mockito.any());
    request.setContext(context);
    webappAuthenticationValve.invoke(request, null, compositeValve);
}