@Test
public void shouldRemoveEmptyLinesFromAddressString() {

    final PatientEntity patientEntity = dummyPatientEntity();
    patientEntity.setAddress1("line 1");
    patientEntity.setAddress2(null);
    patientEntity.setAddress3("line 3");
    patientEntity.setAddress5("");
    patientEntity.setAddress5("line 5");
    patientEntity.setPostcode("postcode");
    final PatientDetails patientDetails = transformer.transform(patientEntity);
    assertNotNull(patientDetails);
    // TODO Commented out for 1.2.2 build. Need to check this, get Address now returns an array of 5 strings one per line
    // Changes at 1.2.2 remove the use of teh text field and stupulate a more strcutured address so this test no longer applies
    //assertEquals("line 1, line 3, postcode", patientDetails.getAddress());
}