@Test
public void testAdjustedCount()
{

  TestReader sliceReader = new TestReader();
  Assert.assertEquals("min", 1, sliceReader.getAdjustedCount(1));
  Assert.assertEquals("max", 16, sliceReader.getAdjustedCount(16));
  Assert.assertEquals("max-1", 8, sliceReader.getAdjustedCount(15));
  Assert.assertEquals("min+1", 2, sliceReader.getAdjustedCount(2));
  Assert.assertEquals("between 1", 4, sliceReader.getAdjustedCount(4));
  Assert.assertEquals("between 2", 4, sliceReader.getAdjustedCount(7));
  Assert.assertEquals("between 2", 8, sliceReader.getAdjustedCount(12));
}