@Test public void testRequestIdShouldHaveCorrectFormat() throws Exception { final String uuid = new UUIDGeneratorImpl().getNextUUID(); final Pattern pattern = Pattern.compile("\\S*-\\d{8}-(\\d|[a-f]){10}"); assertTrue("Request id should have correct format",pattern.matcher(uuid).matches()); }
@Override public String getNextUUID() { return randomUUID(); }
UUIDGeneratorImpl implements UUIDGenerator { @Override public String getNextUUID() { return randomUUID(); } }
UUIDGeneratorImpl implements UUIDGenerator { @Override public String getNextUUID() { return randomUUID(); }  }
UUIDGeneratorImpl implements UUIDGenerator { @Override public String getNextUUID() { return randomUUID(); }  @Override String getNextUUID(); @Override String[] validateUuid(String uuid); }
UUIDGeneratorImpl implements UUIDGenerator { @Override public String getNextUUID() { return randomUUID(); }  @Override String getNextUUID(); @Override String[] validateUuid(String uuid); static final String DEFAULT_HOSTNAME; }