MultipleLocalDataMergedResult implements MergedResult { @Override public boolean next() { if (rows.hasNext()) { currentRow = rows.next(); return true; } return false; } MultipleLocalDataMergedResult(final Collection<List<Object>> rows); @Override boolean next(); @Override Object getValue(final int columnIndex, final Class<?> type); @Override Object getCalendarValue(final int columnIndex, final Class<?> type, final Calendar calendar); @Override InputStream getInputStream(final int columnIndex, final String type); @Override boolean wasNull();  }
@Test public void assertNext() { List<Object> row = Collections.singletonList("value"); MultipleLocalDataMergedResult actual = new MultipleLocalDataMergedResult(Collections.singletonList(row)); assertTrue(actual.next()); assertFalse(actual.next()); }