@Override
  protected void setUp() throws Exception {
    super.setUp();
    ofact = getOperationFactory();
    genericCallback = new OperationCallback() {
      public void complete() {
        fail("Unexpected invocation");
      }

      public void receivedStatus(OperationStatus status) {
        fail("Unexpected status:  " + status);
      }
    };
    storeCallback = new StoreOperation.Callback() {
      public void complete() {
        fail("Unexpected invocation");
      }

      public void gotData(String key, long cas) {
      }

      public void receivedStatus(OperationStatus status) {
        fail("Unexpected status:  " + status);
      }
    };
    deleteCallback = new DeleteOperation.Callback() {
      public void complete() {
        fail("Unexpected invocation");
      }

      public void gotData(long cas) {
      }

      public void receivedStatus(OperationStatus status) {
        fail("Unexpected status:  " + status);
      }
    };
    testData = new byte[64];
    new Random().nextBytes(testData);
  }
Base class for operation factory tests.
src/test/java/net/spy/memcached/OperationFactoryTestBase.java