storageUtil.expectTaskFetch(filterQuery, pendingTask);
expect(nearestFit.getNearestFit(taskId)).andReturn(result);
control.replay();
Set<PendingReason> expected = ImmutableSet.of(new PendingReason()
.setTaskId(taskId)
.setReason("first,second"));
Response response = assertOkResponse(thrift.getPendingReason(query.get()));
assertEquals(expected, response.getResult().getGetPendingReasonResult().getReasons());