}
}
public void testBasicRead() throws Exception {
byte[] input = new byte[] {'a', 'b', 'c'};
HttpDataReceiverMockup receiver = new HttpDataReceiverMockup(input);
HttpDataInputStream instream = new HttpDataInputStream(receiver);
byte[] tmp = new byte[2];
assertEquals(2, instream.read(tmp, 0, tmp.length));
assertEquals('a', tmp[0]);
assertEquals('b', tmp[1]);