PrependPrefixProcessor implements PrefixProcessor { @Override public String process(String inputPrefix, NameGenerationRequest request) { if (nonNull(request) && isNotBlank(request.getOriginalName())) { return inputPrefix + request.getOriginalName(); } return inputPrefix; }  @Override String process(String inputPrefix, NameGenerationRequest request);  }
@Test public void positive() { assertEquals("prefix_name", victim.process("prefix_", nameRequest().originalName("name"))); }
@Test public void nullRequest() { assertEquals("prefix_", victim.process("prefix_", null)); }
@Test public void noName() { assertEquals("prefix_", victim.process("prefix_", nameRequest())); }