}
@Test
public void testNonSpillableDataBag() throws Exception {
String[][] tupleContents = new String[][] {{"a", "b"},{"c", "d" }, { "e", "f"} };
NonSpillableDataBag bg = new NonSpillableDataBag();
for (int i = 0; i < tupleContents.length; i++) {
bg.add(Util.createTuple(tupleContents[i]));
}
Iterator<Tuple> it = bg.iterator();
int j = 0;
while(it.hasNext()) {
Tuple t = it.next();
assertEquals(Util.createTuple(tupleContents[j]), t);
j++;