fail("Expected Exception.");
} catch (InvalidAnnotationException ex) {
assertTrue(ex.getMessage().contains("do not match in size"));
}
final MemcachedClientIF cache = EasyMock.createMock(MemcachedClientIF.class);
cut.setCache(cache);
for (final String key : keys) {
final String value = "ValueFor-" + key;
objs.add(value);
EasyMock.expect(cache.set(key, data.getExpiration(), value)).andReturn(null);
}
keys.add("BigFatNull");
objs.add(null);
EasyMock.expect(cache.set(keys.get(2), data.getExpiration(), new PertinentNegativeNull())).andReturn(null);
EasyMock.replay(cache);
cut.updateCache(keys, objs, method, data);