@Test(expected = IllegalArgumentException.class)
public void testGetAndClear_tokenIsNull() throws Exception {

    try {
        store = new HttpSessionTransactionTokenStore();
        store.getAndClear(null);
    } catch (Exception e) {
        assertThat(e.getMessage(), is("token must not be null"));
        throw e;
    }
}