@Test
 public void testFromHL7() {
   PatientInfo patientInfo = new PatientInfo();
   transformer.fromHL7("19800102030405-0100^sdf", patientInfo);
   DateTime expected =
       new DateTime(1980, 1, 2, 3, 4, 5, DateTimeZone.forOffsetHoursMinutes(-1, 0));
   assertEquals(expected.toDateTime(DateTimeZone.UTC), patientInfo.getDateOfBirth());
 }
 @Test
 public void testFromHL7Empty() {
   PatientInfo patientInfo = new PatientInfo();
   transformer.fromHL7("", patientInfo);
   assertNull(patientInfo.getDateOfBirth());
 }
 @Test
 public void testToHL7WithNoDate() {
   assertNull(transformer.toHL7(new PatientInfo()));
 }
 @Test
 public void testToHL7() {
   PatientInfo patientInfo = new PatientInfo();
   patientInfo.setDateOfBirth("19800102030405+0100");
   assertEquals("19800102", transformer.toHL7(patientInfo).get(0));
 }