public void testAsyncDecrementWithDefault() throws Exception {
    String k = "async-decr-with-default";
    OperationFuture<Long> f = client.asyncDecr(k, 4, 10);
    assertEquals(StatusCode.SUCCESS, f.getStatus().getStatusCode());
    assertEquals(10, (long) f.get());

    f = client.asyncDecr(k, 4, 10);
    assertEquals(StatusCode.SUCCESS, f.getStatus().getStatusCode());
    assertEquals(6, (long) f.get());
  }
This test assumes a binary server is running on the host specified int the
environment variable SPYMC_TEST_SERVER_V4 or localhost:11211 by default.
src/test/java/net/spy/memcached/BinaryClientTest.java