@Test
public void testConfigure() {

  SessionConfiguration conf = mock(SessionConfiguration.class);
  when(conf.getAttribute(eq(SessionConfiguration.SESSION_ID_LENGTH), any(String.class))).thenReturn("43");
  RandomIdProvider provider = new RandomIdProvider();
  provider.configure(conf);
  assertEquals(60, provider.newId().length());
  assertEquals("ABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEabcde_____1234567890",
      provider.readId("ABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEabcde_____1234567890"));
}