@Test
public void size() throws IOException {

    SeekableByteChannel channel = new ByteBufferSeekableByteChannel(ByteBuffer.wrap(new byte[]{0x1, 0x2, 0x3, 0x4}));
    assertEquals(channel.size(), 4);
    channel.close();
}