assertEquals(-1, m.matchFirst(null));
assertEquals(-1, m.matchFirst(IoBuffer.allocate(0)));
ByteBufferMatcher newline = new ShiftAndByteBufferMatcher(IoBuffer
.wrap("\r\n".getBytes()));
String memcachedGet = "VALUE test 0 0 100\r\nhello\r\n";
assertEquals(memcachedGet.indexOf("\r\n"), newline
.matchFirst(IoBuffer.wrap(memcachedGet.getBytes())));
assertEquals(25, newline.matchFirst(IoBuffer.wrap(
memcachedGet.getBytes()).position(20)));
}