ProcessIdSegment implements Segment { @Override public String createToken(final String prefix, final Timestamp timestamp) { return pid; } ProcessIdSegment(); @Override String getStaticText(); @Override boolean validateToken(final String token); @Override String createToken(final String prefix, final Timestamp timestamp);  }
@Test public void createToken() { ProcessIdSegment segment = new ProcessIdSegment(); assertThat(segment.createToken(null, null)).isEqualTo(PROCESS_ID); }