@Test
public void testFromHL7() {

    PatientInfo patientInfo = new PatientInfo();
    transformer.fromHL7("id1^^^&1.1.1.1&ISO~id2^^^&2.2.2.2&ISO", patientInfo);
    
    List<Identifiable> ids = patientInfo.getIds();        
    assertEquals(2, ids.size());
    
    assertEquals("id1", ids.get(0).getId());
    assertEquals("1.1.1.1", ids.get(0).getAssigningAuthority().getUniversalId());
    assertEquals("ISO", ids.get(0).getAssigningAuthority().getUniversalIdType());
    assertEquals("id2", ids.get(1).getId());
    assertEquals("2.2.2.2", ids.get(1).getAssigningAuthority().getUniversalId());
    assertEquals("ISO", ids.get(1).getAssigningAuthority().getUniversalIdType());
}