@Test
public void testGetLinePosition() throws Exception {

  final JBBPTextWriter writer = makeWriter();
  assertEquals(0, writer.getLinePosition());
  writer.write("123");
  assertEquals(3, writer.getLinePosition());
  writer.write("111\n");
  assertEquals(0, writer.getLinePosition());
}