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