@Test
public void shouldAcceptLittleEndian() throws IOException {

    OutputStreamBitChannel channel = new OutputStreamBitChannel(out);
    channel.write(12, (int) 0xf00, ByteOrder.LittleEndian); // 1111 0000 0000 
    channel.write(4, (int) 0x0, ByteOrder.LittleEndian); // 0000
    // What I expect:
    // 0000 0000 1111 0000
    verify(out).write((byte) Integer.parseInt("00000000", 2));
    verify(out).write((byte) Integer.parseInt("11110000", 2));
    verifyNoMoreInteractions(out);
}