@Test
public void testGet() throws Exception {

	PagedChannelRandomAccessSource s = new PagedChannelRandomAccessSource(channel);
	try{
		for(int i = 0; i < data.length; i++){
			int ch = s.get(i);
			Assert.assertFalse("EOF hit unexpectedly at " + i + " out of " + data.length, ch == -1);
			Assert.assertEquals("Position " + i, data[i], (byte)ch);
		}
		Assert.assertEquals(-1, s.get(data.length));
	} finally {
		s.close();
	}
}