public void testLineReadType() throws Exception {
    SimpleOp op = new SimpleOp(OperationReadType.LINE);
    assertSame(OperationReadType.LINE, op.getReadType());
    // Make sure lines aren't handled
    try {
      op.handleRead(ByteBuffer.allocate(3));
      fail("Handled data in line mode");
    } catch (AssertionError e) {
      // ok
    }
    op.handleLine("x");
  }
Test the basic operation buffer handling stuff.
src/test/java/net/spy/memcached/protocol/ascii/BaseOpTest.java