PipelineFunctionParameterResolverFactory { static EmptyParameterResolver forEmptyParameters() { return EMPTY_PARAMETER_RESOLVER; } private  PipelineFunctionParameterResolverFactory();   }
@Test public void emptyParameterResolverResolvesEmptyParentheses() { final Predicate<String> noParamResolver = PipelineFunctionParameterResolverFactory.forEmptyParameters(); assertThat(noParamResolver.test("()")).isTrue(); assertThat(noParamResolver.test("( )")).isTrue(); }
@Test public void emptyParameterResolverFailsForNonEmptyParentheses() { final Predicate<String> noParamResolver = PipelineFunctionParameterResolverFactory.forEmptyParameters(); assertThat(noParamResolver.test("(thing:id)")).isFalse(); assertThat(noParamResolver.test("(\"val\")")).isFalse(); assertThat(noParamResolver.test("(\'val\')")).isFalse(); }