EasyMock.expect(filters[i].filter(method, resp, rc)).andReturn(rc);
EasyMock.replay(filters[i]);
}
//now call the success case
callback.onResponseReceived(null, resp);
// now call the error case
Exception e = new Exception();
try{
callback.onError(null, e);