statusResource.get(eq(1L), EasyMock.<Callback<Status>> anyObject());
EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
@Override
public Object answer() throws Throwable {
Callback<Status> callback = (Callback<Status>) EasyMock.getCurrentArguments()[1];
Status stat = buildStatusRecord();
callback.onSuccess(stat);
return null;
}
});
EasyMock.replay(statusResource);