@Test
public void testByteOrder() throws Exception {

  final JBBPTextWriter writer = makeWriter();
  writer.ByteOrder(JBBPByteOrder.LITTLE_ENDIAN);
  assertEquals(JBBPByteOrder.LITTLE_ENDIAN, writer.getByteOrder());
  writer.ByteOrder(JBBPByteOrder.BIG_ENDIAN);
  assertEquals(JBBPByteOrder.BIG_ENDIAN, writer.getByteOrder());
}