@Test public void position() {

    assertThat(CharBuffer.fromString("").position(), is(0));
    CharBuffer buffer = CharBuffer.fromString("...");
    assertThat(buffer.position(), is(0));
    assertThat(buffer.get(), is('.'));
    assertThat(buffer.position(), is(1));
    assertThat(buffer.get(), is('.'));
    assertThat(buffer.position(), is(2));
    assertThat(buffer.get(), is('.'));
    assertThat(buffer.position(), is(3));
}