StreamMergedResult implements MergedResult { protected final QueryResult getCurrentQueryResult() throws SQLException { if (null == currentQueryResult) { throw new SQLException("Current ResultSet is null, ResultSet perhaps end of next."); } return currentQueryResult; }  @Override Object getValue(final int columnIndex, final Class<?> type); @Override Object getCalendarValue(final int columnIndex, final Class<?> type, final Calendar calendar); @Override final InputStream getInputStream(final int columnIndex, final String type); @Override final boolean wasNull();  }
@Test(expected = SQLException.class) public void assertGetCurrentQueryResultIfNull() throws SQLException { streamMergedResult.getCurrentQueryResult(); }