public static class GetNotFound implements Answer<Object> {
@Override
public Object answer(InvocationOnMock invocation) throws Throwable {
String key = (String)invocation.getArguments()[0];
Get cb = (Get) invocation.getArguments()[1];
cb.notFound(key);
return null;
}
}
public static class GetFound implements Answer<Object> {