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