@Test
public void testWriteBoolean() throws IOException {

  final ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
  final LittleEndianDataOutputStream littleEndianOut = new LittleEndianDataOutputStream(byteOut);
  littleEndianOut.writeBoolean(true);
  littleEndianOut.writeBoolean(true);
  littleEndianOut.writeBoolean(false);
  littleEndianOut.close();
  assertTrue(Arrays.equals(new byte[] {0x01, 0x01, 0x00}, byteOut.toByteArray()));
}