@Test
public void testParseBuffer() throws Exception {

    final Tokenizer.Cursor cursor = new Tokenizer.Cursor(1, 13);
    Assert.assertThat(impl.parse(" TLSv1.2,0000", cursor, Tokenizer.INIT_BITSET(',')),
            CoreMatchers.equalTo(TLS.V_1_2.version));
    Assert.assertThat(cursor.getPos(), CoreMatchers.equalTo(8));
}