@Test
    public void testRestoreURLString() {
        val context = MockWebContext.create();
        val sessionStore = new MockSessionStore();
        sessionStore.set(context, Pac4jConstants.REQUESTED_URL, VALUE);
        val action = handler.restore(new CallContext(context, sessionStore), LOGIN_URL);
        assertTrue(action instanceof FoundAction);
        assertEquals(VALUE, ((FoundAction) action).getLocation());
        assertFalse(sessionStore.get(context, Pac4jConstants.REQUESTED_URL).isPresent());
    }
Tests {@link DefaultSavedRequestHandler}.

@author Jerome LELEU
@since 4.0.0
pac4j-core/src/test/java/org/pac4j/core/engine/savedrequest/DefaultSavedRequestHandlerTest.java