buf.clear();
int len = inbuffer.readLine(buf);
Assert.assertEquals(len, SWISS_GERMAN_HELLO.length);
Assert.assertEquals(s1, buf.toString());
}
buf.clear();
Assert.assertEquals("", inbuffer.readLine());
Assert.assertNull(inbuffer.readLine());
Assert.assertNull(inbuffer.readLine());
long bytesRead = inbuffer.getMetrics().getBytesTransferred();
Assert.assertEquals(expected, bytesRead);