PartialLineBuffer partialLineBuffer = new PartialLineBuffer();
char[] data = "Test10\nTest11\n".toCharArray();
partialLineBuffer.addData(data, 0, data.length);
assertEquals("Test10", partialLineBuffer.readLine());
assertEquals("Test11", partialLineBuffer.readLine());
assertNull(partialLineBuffer.readLine());
assertNull(partialLineBuffer.getPartialLine());
data = "Test10\r\nTest11\r\n".toCharArray();
partialLineBuffer.addData(data, 0, data.length);