@Test public void delete() throws TimeoutException, CacheException { EasyMock.expect(client.delete("key1")).andReturn(getFuture(true)); EasyMock.replay(client); assertTrue(clientWrapper.delete("key1")); EasyMock.verify(client); }