public void testMutatorOperationIncrCloning() {
    int exp = 823862;
    long def = 28775;
    long by = 7735;
    MutatorOperation op = ofact.mutate(Mutator.incr, TEST_KEY, by, def, exp,
      genericCallback);

    MutatorOperation op2 = cloneOne(MutatorOperation.class, op);
    assertKey(op2);
    assertEquals(exp, op2.getExpiration());
    assertEquals(def, op2.getDefault());
    assertEquals(by, op2.getBy());
    assertSame(Mutator.incr, op2.getType());
    assertCallback(op2);
  }
Get the operation factory used by the tests.
src/test/java/net/spy/memcached/OperationFactoryTestBase.java