@Test
    public void testSetExpiredGet() {
        val store = buildStore();
        store.set(KEY, VALUE);
        assertEquals(VALUE, store.get(KEY).get());
        try {
            Thread.sleep(2000);
        } catch (final InterruptedException e) {
            throw new RuntimeException(e);
        }
        assertFalse(store.get(KEY).isPresent());
    }
Test a store.

@author Jerome Leleu
@since 2.0.0
pac4j-core/src/test/java/org/pac4j/core/store/AbstractStoreTests.java