### Question:
MotownCentralSystemService implements io.motown.ocpp.v15.soap.centralsystem.schema.CentralSystemService { @Override public HeartbeatResponse heartbeat(HeartbeatRequest parameters, String chargeBoxIdentity) { domainService.heartbeat(new ChargingStationId(chargeBoxIdentity), addOnIdentity); HeartbeatResponse response = new HeartbeatResponse(); response.setCurrentTime(new Date()); return response; }  @Override DataTransferResponse dataTransfer(final DataTransferRequest request, final String chargeBoxIdentity); @Override StatusNotificationResponse statusNotification(StatusNotificationRequest request, String chargeBoxIdentity); @Override StopTransactionResponse stopTransaction(StopTransactionRequest request, String chargeBoxIdentity); @Override BootNotificationResponse bootNotification(BootNotificationRequest request, String chargeBoxIdentity); @Override HeartbeatResponse heartbeat(HeartbeatRequest parameters, String chargeBoxIdentity); @Override MeterValuesResponse meterValues(MeterValuesRequest request, String chargeBoxIdentity); @Override DiagnosticsStatusNotificationResponse diagnosticsStatusNotification(DiagnosticsStatusNotificationRequest request, String chargeBoxIdentity); @Override AuthorizeResponse authorize(final AuthorizeRequest request, final String chargeBoxIdentity); @Override FirmwareStatusNotificationResponse firmwareStatusNotification(FirmwareStatusNotificationRequest request, String chargeBoxIdentity); @Override StartTransactionResponse startTransaction(final StartTransactionRequest parameters, final String chargeBoxIdentity); void setDomainService(DomainService domainService); void setContext(WebServiceContext context); void setContinuationTimeout(int continuationTimeout); void setHeartbeatIntervalFallback(int heartbeatIntervalFallback); void setSoapHeaderReader(SoapHeaderReader soapHeaderReader); void setAddOnId(String id); static final String ADD_ON_TYPE; }### Answer:
@Test public void heartBeatVerifyResponse() { HeartbeatRequest request = new HeartbeatRequest(); HeartbeatResponse response = motownCentralSystemService.heartbeat(request, CHARGING_STATION_ID.getId()); assertNotNull(response); assertNotNull(response.getCurrentTime()); }
@Test public void heartBeatVerifyServiceCall() { HeartbeatRequest request = new HeartbeatRequest(); motownCentralSystemService.heartbeat(request, CHARGING_STATION_ID.getId()); verify(domainService).heartbeat(CHARGING_STATION_ID, OCPPS15_ADD_ON_IDENTITY); }