TimestampPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { String retVal = inputPrefix; String timestamp = new SimpleDateFormat(DATE_PATTERN).format(new Date()); return retVal.replaceAll(TIMESTAMP_REPLACE_RGX, timestamp); }  @Override String process(String inputPrefix, NameGenerationRequest request);  }
@Test public void testComplexProcess() { String prefix = "prefix_[TIMESTAMP]_[BASENAME]"; assertFalse(prefix.equals(victim.process(prefix, nameRequest()))); }