@Override
    public ParameterType<?> parameterType() {
        return parameterType;
    }
@Test
    void can_define_parameter_type_converters_with_one_capture_group() throws NoSuchMethodException {
        Method method = JavaParameterTypeDefinitionTest.class.getMethod("convert_one_capture_group_to_string",
            String.class);
        JavaParameterTypeDefinition definition = new JavaParameterTypeDefinition("", "(.*)", method, false, false,
            false, lookup);
        registry.defineParameterType(definition.parameterType());
        Expression cucumberExpression = new ExpressionFactory(registry)
                .createExpression("{convert_one_capture_group_to_string}");
        List<Argument<?>> test = cucumberExpression.match("test");
        assertThat(test.get(0).getValue(), equalTo("convert_one_capture_group_to_string"));
    }