@Test
public void testReachedEnd() {

	NullTerminatingSpout finiteSpout = new NullTerminatingSpout(new TestDummySpout());
	finiteSpout.open(null, null, mock(SpoutOutputCollector.class));
	Assert.assertFalse(finiteSpout.reachedEnd());
	finiteSpout.nextTuple();
	Assert.assertFalse(finiteSpout.reachedEnd());
	finiteSpout.nextTuple();
	Assert.assertTrue(finiteSpout.reachedEnd());
}