hs.seek(position);
final int range = 1000;
byte[] expectedBytes = new byte[range];
hs.read(expectedBytes, 0, expectedBytes.length);
SeekableServiceStream sss = new SeekableServiceStream(new URL(tdfFile));
sss.seek(position);
byte[] bytes = new byte[range];
sss.read(bytes, 0, bytes.length);
for (int i = 0; i < expectedBytes.length; i++) {
assertEquals(expectedBytes[i], bytes[i]);
}
}