@Test
public void shouldAcceptBooleans() throws IOException {

    OutputStreamBitChannel channel = new OutputStreamBitChannel(out);
    channel.write(true);
    channel.write(true);
    channel.write(true);
    channel.write(true);
    channel.write(false);
    channel.write(false);
    channel.write(false);
    channel.write(false);
    channel.write(false);
    verify(out).write((byte) 0xf0);
    verifyNoMoreInteractions(out);
}