ParameterizedQueryTemplateFactoryBean factoryBean = new ParameterizedQueryTemplateFactoryBean(PARAMETERIZED_QUERY, overriddenParams, queryParser);
QueryTemplate createdQueryTemplate = factoryBean.getObject();
assertThat(createdQueryTemplate.getParams().size(), equalTo(1));
OutputQueryParam queryParam = createdQueryTemplate.getOutputParams().get(0);
assertThat(queryParam.getIndex(), equalTo(1));
assertThat(queryParam.getType(), equalTo(expectedParamType));
assertThat(queryParam.getName(), equalTo(POSITION_PARAM_NAME));
}