@Test
public void singleResolverAllowsWhitespaceBetweenParentheses() {

    final PipelineFunctionParameterResolverFactory.SingleParameterResolver parameterResolver =
            PipelineFunctionParameterResolverFactory.forStringOrPlaceholderParameter();
    final String stringSingle = "(   \'" + KNOWN_VALUE + "\'   )";
    final String stringDouble = "(   \"" + KNOWN_VALUE + "\"   )";
    final String stringPlaceholder = "(    " + KNOWN_PLACEHOLDER + "   )";
    when(expressionResolver.resolveAsPipelineElement(anyString())).thenReturn(
            PipelineElement.resolved(KNOWN_VALUE));
    assertThat(parameterResolver.apply(stringSingle, expressionResolver, DUMMY)).contains(KNOWN_VALUE);
    assertThat(parameterResolver.apply(stringDouble, expressionResolver, DUMMY)).contains(KNOWN_VALUE);
    assertThat(parameterResolver.apply(stringPlaceholder, expressionResolver, DUMMY)).contains(KNOWN_VALUE);
    verify(expressionResolver).resolveAsPipelineElement(KNOWN_PLACEHOLDER);
}