Mockito.verifyNoMoreInteractions(mock);
}
private void dispatchCallWithPriority(RpcScheduler scheduler, int priority) throws Exception {
CallRunner task = Mockito.mock(CallRunner.class);
RequestHeader header = RequestHeader.newBuilder().setPriority(priority).build();
RpcServer server = new RpcServer(null, "test-rpcserver", null, null, conf, scheduler);
RpcServer.Call call =
server.new Call(0, null, null, header, null, null, null, null, 10, null);
Mockito.when(task.getCall()).thenReturn(call);