@SuppressWarnings("unchecked")
  private <T> T assertOne(Class<T> class1, Collection<Operation> ops) {
    assertEquals(1, ops.size());
    Operation op = ops.iterator().next();
    return (T) op;
  }
Get the operation factory used by the tests.
src/test/java/net/spy/memcached/OperationFactoryTestBase.java