I\'m looking for something to achieve the following:
String s = \"hello {}!\"; s = generate(s, new Object[]{ \"world\" }); assertEquals(s, \"hello world!\");
See String.format method.
String s = "hello %s!"; s = String.format(s, "world"); assertEquals(s, "hello world!"); // should be true