HandlerUtil { static List<String> argsReplace(List<String> template, String parameter) { List<String> result = new ArrayList<>(template); Collections.replaceAll(result, "{}", parameter); return result; } private  HandlerUtil();   }
@Test public void shouldReplaceArgs() { assertThat(HandlerUtil.argsReplace(List.of("foo", "bar", "{}"), "foobar"), is(List.of("foo", "bar", "foobar"))); }
@Test public void shouldDoNothingIfNoPlaceholder() { assertThat(HandlerUtil.argsReplace(List.of("foo", "bar", "foobar"), "barfoo"), is(List.of("foo", "bar", "foobar"))); }