@Test
public void testtranslateFunctionsCondition() {

    String result;
    Map<String, String> table = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
    table.put("FOO", "FOO_FN");
    table.put("foo2", "foo2_fn");
    table.put("UPPER", "UPPER");
    result = streamCatalogService.translateFunctions("select foo, foo1, foo2 from stream where FOO(a, b) = 'c'",
            table);
    Assert.assertEquals("select foo, foo1, foo2 from stream where FOO_FN(a, b) = 'c'", result);
    result = streamCatalogService.translateFunctions("select * from stream where FOO(a) = 'b' AND UPPER(a) = 'C'",
            table);
    Assert.assertEquals("select * from stream where FOO_FN(a) = 'b' AND UPPER(a) = 'C'", result);
}