@Test @SuppressWarnings("unchecked") public void getStringMemcacheTranscoderOfTLong() throws TimeoutException, CacheException { CacheTranscoder transcoder = EasyMock.createMock(CacheTranscoder.class); EasyMock.expect(client.asyncGet(EasyMock.eq("key1"), EasyMock.anyObject(Transcoder.class))) .andReturn(getFuture("test-value")); EasyMock.replay(client); assertEquals("test-value", clientWrapper.get("key1", transcoder, 100)); EasyMock.verify(client); }