TransparentResultMerger implements ResultMerger { @Override public MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData) { return new TransparentMergedResult(queryResults.get(0)); }  @Override MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData);  }
@Test public void assertMerge() throws SQLException { QueryResult queryResult = mock(QueryResult.class); when(queryResult.next()).thenReturn(true); TransparentResultMerger merger = new TransparentResultMerger(); MergedResult actual = merger.merge(Collections.singletonList(queryResult), mock(SQLStatementContext.class), mock(SchemaMetaData.class)); assertTrue(actual.next()); }