SingleLocalDataMergedResult implements MergedResult { @Override public boolean next() { if (values.hasNext()) { currentValue = values.next(); return true; } return false; } SingleLocalDataMergedResult(final Collection<Object> values); @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() { SingleLocalDataMergedResult actual = new SingleLocalDataMergedResult(Collections.singleton("value")); assertTrue(actual.next()); assertFalse(actual.next()); }