if (!mocksToBeVerifiedInOrder.contains(mock)) {
reporter.inOrderRequiresFamiliarMock();
} else if (!(mode instanceof VerificationInOrderMode)) {
throw new MockitoException(mode.getClass().getSimpleName() + " is not implemented to work with InOrder");
}
return mockitoCore.verify(mock, new InOrderWrapper((VerificationInOrderMode) mode, mocksToBeVerifiedInOrder));
}