StatementResultIterator iterator = new StatementResultIterator(null, statement, queryTemplate, null, null);
Object nextResult = iterator.next();
assertThat(nextResult, is(instanceOf(OutputParamResult.class)));
OutputParamResult outputParamResult = (OutputParamResult) nextResult;
assertThat(outputParamResult.getName(), equalTo("param1"));
assertThat((Integer) outputParamResult.getResult(), equalTo(paramValue));
}