@Test
public void testReadlineWithBigBuffer() throws Exception {

  String myMessage = "{this is my message}\r\n";
  byte[] bytes = myMessage.getBytes(Charsets.UTF_8);
  InputStream stream = new ByteArrayInputStream(bytes);
  DelimitedStreamReader r = new DelimitedStreamReader(stream, Charsets.UTF_8, myMessage.length() * 3);
  String msg = r.readLine();
  assertEquals(msg, myMessage.trim());
}