TrustMode implements ResponseMode { protected void sendToPatientCorrelationComponent(II localPatId, II remotePatId, AssertionType assertion, PRPAIN201306UV02 response) { if (localPatId != null && NullChecker.isNotNullish(localPatId.getRoot()) && NullChecker.isNotNullish(localPatId.getExtension()) && remotePatId != null && NullChecker.isNotNullish(remotePatId.getRoot()) && NullChecker.isNotNullish(remotePatId.getExtension())) { PRPAIN201301UV02 request = HL7PRPA201301Transforms.createPRPA201301(response, localPatId.getRoot()); if (request != null && request.getControlActProcess() != null && NullChecker.isNotNullish(request.getControlActProcess().getSubject()) && request.getControlActProcess().getSubject().get(0) != null && request.getControlActProcess().getSubject().get(0).getRegistrationEvent() != null && request.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1() != null && request.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1() .getPatient() != null && NullChecker.isNotNullish(request.getControlActProcess().getSubject().get(0) .getRegistrationEvent().getSubject1().getPatient().getId())) { request.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1().getPatient() .getId().add(localPatId); PatientCorrelationProxyObjectFactory patCorrelationFactory = new PatientCorrelationProxyObjectFactory(); PatientCorrelationProxy patCorrelationProxy = patCorrelationFactory.getPatientCorrelationProxy(); patCorrelationProxy.addPatientCorrelation(request, assertion); } } } TrustMode(); @Override PRPAIN201306UV02 processResponse(ResponseParams params); @Override PRPAIN201306UV02 processResponse(PRPAIN201306UV02 response, AssertionType assertion, II localPatId);  }
@Test public void testSendToPatientCorrelationComponent() { System.out.println("sendToPatientCorrelationComponent"); II localPatId = null; II remotePatId = null; AssertionType assertion = null; PRPAIN201306UV02 response = null; TrustMode instance = new TrustMode(); instance.sendToPatientCorrelationComponent(localPatId, remotePatId, assertion, response); }