HL7PRPA201310Transforms { public static PRPAIN201310UV02 createFaultPRPA201310() { return createPRPA201310("", "", "", "", "", null); }  static PRPAIN201310UV02 createFaultPRPA201310(); static PRPAIN201310UV02 createFaultPRPA201310(final String senderOID, final String receiverOID); static PRPAIN201310UV02 createPRPA201310(final String patientId, final String assigningAuthorityId,
            final String localDeviceId, final String senderOID, final String receiverOID,
            final JAXBElement<PRPAMT201307UV02QueryByParameter> queryParam);  }
@Test public void createFaultPRPA201310() { PRPAIN201310UV02 result = new PRPAIN201310UV02(); HL7PRPA201310Transforms transforms = new HL7PRPA201310Transforms(); result = transforms.createFaultPRPA201310(); assertNull(result.getSender().getDevice().getId().get(0).getRoot()); assertNull(result.getReceiver().get(0).getDevice().getId().get(0).getRoot()); assertTrue(result.getControlActProcess().getQueryByParameter().getValue().getParameterList() .getPatientIdentifier().isEmpty()); assertNull(result.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1().getPatient() .getId().get(0).getRoot()); }
@Test public void createFaultPRPA201310WithSenderAndReceiver() { PRPAIN201310UV02 result = new PRPAIN201310UV02(); String senderOID = "1.1"; String receiverOID = "2.2"; HL7PRPA201310Transforms transforms = new HL7PRPA201310Transforms(); result = transforms.createFaultPRPA201310(senderOID, receiverOID); assertEquals(result.getSender().getDevice().getId().get(0).getRoot(), "1.1"); assertEquals(result.getReceiver().get(0).getDevice().getId().get(0).getRoot(), "2.2"); assertTrue(result.getControlActProcess().getQueryByParameter().getValue().getParameterList() .getPatientIdentifier().isEmpty()); assertNull(result.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1().getPatient() .getId().get(0).getRoot()); }