PixRetrieveResponseBuilder { public static PRPAIN201310UV02 createPixRetrieveResponse(PRPAIN201309UV02 retrievePatientCorrelationsRequest, List<II> resultListII) { PRPAIN201310UV02 message = createTransmissionWrapper(IIHelper.IIFactory(Configuration.getMyCommunityId(), null), IIHelper.IIFactoryCreateNull()); message.getAcknowledgement().add(createAck()); message.setControlActProcess(createControlActProcess(resultListII, retrievePatientCorrelationsRequest)); return message; }  static PRPAIN201310UV02 createPixRetrieveResponse(PRPAIN201309UV02 retrievePatientCorrelationsRequest,
            List<II> resultListII);  }
@Test public void createPixRetrieveResponse() { PRPAIN201309UV02 patCorrReq = new PRPAIN201309UV02(); patCorrReq.setControlActProcess(createControlActProcess()); PixRetrieveResponseBuilder response = new PixRetrieveResponseBuilder(); PRPAIN201310UV02 message = new PRPAIN201310UV02(); message = response.createPixRetrieveResponse(patCorrReq, createIIList()); assertEquals(message.getControlActProcess().getQueryByParameter().getValue().getQueryId().getAssigningAuthorityName() , "CONNECT"); assertEquals(message.getControlActProcess().getQueryAck().getQueryId().getExtension(), "1.16.17.19"); assertEquals(message.getInteractionId().getExtension(), "PRPA_IN201310"); assertEquals(message.getProcessingCode().getCode(), "P"); assertEquals(message.getAcceptAckCode().getCode(), "AL"); assertEquals(message.getProcessingModeCode().getCode(), "T"); assertEquals(message.getITSVersion(),"XML_1.0"); }