### Question:
IVRProvider implements NotificationProvider { @Override public void notifyCustomer(Notification notification) throws DispatchUnsupportedByUserException, DispatchException { Map<String, BaseEntity<?, ?>> additionaEntityParams = NotificationProviderUtil.addAdditionalParamsAndReturnRecipient(placeDao, personDao, accountDao, notification); Person recipient = NotificationProviderUtil.getPersonFromParams(additionaEntityParams); if (recipient == null) { throw new DispatchUnsupportedByUserException("No person found with id: " + notification.getPersonId()); } String mobileNumber = recipient.getMobileNumber(); if (mobileNumber == null) { throw new DispatchUnsupportedByUserException("Person has no phone number on file."); } try{ String callSID = twilio.sendIVR(notification, recipient); responder.handleHandOff(notification); } catch(DispatchUnsupportedByUserException duu){ throw duu; } catch(Exception e){ throw new DispatchException(e); } } @Inject  IVRProvider(TwilioSender twilio, PersonDAO personDao, PlaceDAO placeDao, AccountDAO accountDao, NotificationMessageRenderer messageRenderer, UpstreamNotificationResponder responder); @Override void notifyCustomer(Notification notification);  }### Answer:
@Test public void shouldTriggerCall() throws DispatchException, DispatchUnsupportedByUserException { ivr.notifyCustomer(notification); Mockito.verify(twilioSender).sendIVR(notification, person); }