@Test
public void testSingleChannelNoBarriers() {

	try {
		BufferOrEvent[] sequence = { createBuffer(0), createBuffer(0), createBuffer(0) };
		MockInputGate gate = new MockInputGate(PAGE_SIZE, 1, Arrays.asList(sequence));
		BarrierTracker tracker = new BarrierTracker(gate);
		for (BufferOrEvent boe : sequence) {
			assertEquals(boe, tracker.getNextNonBlocked());
		}
		
		assertNull(tracker.getNextNonBlocked());
		assertNull(tracker.getNextNonBlocked());
	}
	catch (Exception e) {
		e.printStackTrace();
		fail(e.getMessage());
	}
}