@Test
public void testNewId() {

  RandomIdProvider provider = new RandomIdProvider();
  assertEquals(40, provider.newId().length());
  assertThat(provider.newId(), RegexMatchers.matchesPattern("[A-Za-z0-9_\\-]{40}"));
}