DateSegment implements Segment { @Override public String getStaticText() { return null; } DateSegment(final String format); @Override String getStaticText(); @Override boolean validateToken(final String token); @Override String createToken(final String prefix, final Timestamp timestamp);  }
@Test public void doesNotHaveStaticText() { DateSegment segment = new DateSegment("yyyy-MM-dd"); assertThat(segment.getStaticText()).isNull(); }