@Test
public void testReadNoPosition() throws Exception {

    SimplePullDataSource pds = new SimplePullDataSource();
    pds.remoteReader = new DataInputStream(new MockInputStream(100));
    pds.remoteWriter = new ByteArrayOutputStream(); // dummy output stream
    pds.opened = true;
    byte buffer[] = new byte[100];
    int size = 3 * 9;
    int read = pds.read(0, buffer, 0, size);
    assertEquals(size, read);
    assertEquals(new String(data, 0, size), new String(buffer, 0, size));
}