@@ -0,0 +1,1283 @@
+package com.auth0;%0A%0Aimport static java.util.Collections.emptyEnumeration;%0Aimport static org.mockito.Matchers.eq;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0Aimport javax.servlet.ServletConfig;%0Aimport javax.servlet.ServletContext;%0Aimport javax.servlet.ServletException;%0A%0Aimport org.junit.Test;%0A%0Apublic class Auth0ServletCallbackTest %7B%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void failOnMissingInitParameters() throws ServletException %7B%0A        final Auth0ServletCallback cb = new Auth0ServletCallback();%0A        cb.init(mock(ServletConfig.class));%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void failOnMissingServletContextParameters() throws ServletException %7B%0A        final Auth0ServletCallback cb = new Auth0ServletCallback();%0A        final ServletConfig config = mock(ServletConfig.class);%0A        when(config.getInitParameter(eq(%22auth0.redirect_on_success%22))).thenReturn(%22%22);%0A        when(config.getInitParameter(eq(%22auth0.redirect_on_error%22))).thenReturn(%22%22);%0A        final ServletContext ctx = mock(ServletContext.class);%0A        when(ctx.getInitParameterNames()).thenReturn(emptyEnumeration());%0A        when(config.getServletContext()).thenReturn(ctx);%0A        cb.init(config);%0A    %7D%0A%7D%0A

Add rudimentary tests for Auth0ServletCallback.init(ServletConfig): - failOnMissingInitParameters: passes - failOnMissingServletContextParameters: fails