UuidProvider implements SessionIdProvider { @Override public String newId() { return UUID.randomUUID().toString(); }  @Override String newId(); @Override String readId(String value); @Override void configure(SessionConfiguration configuration);  }
@Test public void testNewId() { UuidProvider provider = new UuidProvider(); assertEquals(36, provider.newId().length()); assertThat(provider.newId(), RegexMatchers.matchesPattern("[a-f0-9\\-]{36}")); }