@Test public void test3destroy() { String token = store.getSessions().get(0).getToken(); store.destroyToken(token); assertThat(store.getSessions().isEmpty(), is(true)); }
@Test public void test0init() { assertThat(store.getSessions().isEmpty(), is(true)); assertThat(store.isValidToken("asdf", true), is(false)); assertThat(store.getIdentityForToken("asdf"), is(nullValue())); // These shouldn't throw anything store.destroyToken("asdf"); }