### Question:
STARTSWITHFunction implements Function { @Override public String render(String... arguments) { StringBuilder builder = new StringBuilder(arguments[1]); builder.replace(arguments[1].lastIndexOf("'"), arguments[1].lastIndexOf("'") + 1, "%'"); return arguments[0] + " LIKE " + builder.toString(); }  @Override String render(String... arguments);  }### Answer:
@Test public void testRender() { STARTSWITHFunction startswithFunction = new STARTSWITHFunction(); assertEquals("TABLE.FIELD1 LIKE 'ABCD%'", startswithFunction.render("TABLE.FIELD1", "'ABCD'")); }