@Test
public void invokeMatchExists() {

    FunctionTestUtil.assertResult(substringBeforeFunction.invoke("foobar", "ob"), "fo");
    FunctionTestUtil.assertResult(substringBeforeFunction.invoke("foobar", "o"), "f");
}