@Test
public void testReadBufferWithOffset() throws Exception {

    SimplePullDataSource pds = new SimplePullDataSource();
    pds.remoteReader = new DataInputStream(new MockInputStream(100));
    byte buffer[] = new byte[100];
    int size = 3 * 9;
    int offset = 5;
    int read = pds.readBuffer(buffer, offset, size);
    assertEquals(size, read);
    assertEquals(new String(data, 0, size), new String(buffer, offset, size));
    System.out.println("data[" + new String(buffer, offset, size) + "]");
}