@Test
public void testExceptionForBitOrderConfilctInCaseOfUsageBitOutputStream() throws Exception {

  final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
  final JBBPBitOutputStream bitstream = new JBBPBitOutputStream(buffer, JBBPBitOrder.LSB0);
  assertThrows(IllegalArgumentException.class, () -> BeginBin(bitstream, JBBPByteOrder.BIG_ENDIAN, JBBPBitOrder.MSB0));
}