QueryParam overriddenParam = new DefaultInOutQueryParam(2, overriddenParamType, POSITION_PARAM_NAME, OVERRIDDEN_PARAM_VALUE);
QueryTemplate createdQueryTemplate = doOverriddenParamTest(templateParamType, overriddenParam);
assertThat(createdQueryTemplate.getParams().size(), equalTo(1));
InOutQueryParam queryParam = (InOutQueryParam) createdQueryTemplate.getParams().get(0);
assertThat(queryParam.getIndex(), equalTo(1));
assertThat(queryParam.getType(), equalTo(expectedParamType));
assertThat(queryParam.getName(), equalTo(POSITION_PARAM_NAME));
assertThat(queryParam.getValue(), IsEqual.<Object>equalTo(OVERRIDDEN_PARAM_VALUE));
}