private OpenMRSPatient preparePatient() {

    OpenMRSPerson person = new OpenMRSPerson();
    person.setFirstName("John");
    person.setLastName("Smith");
    person.setAddress("10 Fifth Avenue");
    person.setBirthDateEstimated(false);
    person.setGender("M");

    OpenMRSAttribute attr = new OpenMRSAttribute("Birthplace", "Motech");
    List<OpenMRSAttribute> attributes = new ArrayList<>();
    attributes.add(attr);
    person.setAttributes(attributes);
    OpenMRSFacility facility =
        facilityAdapter.createFacility(
            new OpenMRSFacility(
                "FooName", "FooCountry", "FooRegion", "FooCountryDistrict", "FooStateProvince"));

    assertNotNull(facility);

    OpenMRSPatient patient = new OpenMRSPatient("602", person, facility);

    return patient;
  }