* Test of read method, of class InfiniteGetTCPClientImpl.
*/
@Test
public void testRead() {
System.out.println("read");
SocketEmulatorInputStream in = new SocketEmulatorInputStream();
StringBuilder str=new StringBuilder();
for(int i=0; i<6000; i++)
{
str.append('0');
}
in.setBytesToRead(str.toString());
InfiniteGetTCPClientImpl instance = new InfiniteGetTCPClientImpl();
String result = instance.read(in);
assertEquals(5120, result.length());
String result2 = instance.read(in);
assertEquals(880, result2.length());