UUIDKeyGenerateAlgorithm implements KeyGenerateAlgorithm { @Override public synchronized Comparable<?> generateKey() { return UUID.randomUUID().toString().replaceAll("-", ""); }  @Override void init(); @Override synchronized Comparable<?> generateKey(); @Override String getType();  }
@Test public void assertGenerateKey() { assertThat(((String) uuidKeyGenerateAlgorithm.generateKey()).length(), is(32)); }