@Test
public void testtranslateFunctionsProjection() {

    String result;
    Map<String, String> table = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
    table.put("FOO", "FOO_FN");
    table.put("foo2", "foo2_fn");
    result = streamCatalogService.translateFunctions("select foo(arg1), FOO(arg2), FOO (arg3) from stream",
            table);
    Assert.assertEquals("select FOO_FN(arg1), FOO_FN(arg2), FOO_FN (arg3) from stream", result);
    result = streamCatalogService.translateFunctions("select foo2(arg1, arg2), bar(arg2), BAZ(arg3, arg4) from stream",
            table);
    Assert.assertEquals("select foo2_fn(arg1, arg2), bar(arg2), BAZ(arg3, arg4) from stream", result);
}