private void assertFacility(
     Facility actualFacility,
     String facilityId,
     String facilityName,
     String country,
     String region,
     String district,
     String province) {
   assertThat(actualFacility.name(), is(equalTo(facilityName)));
   assertThat(actualFacility.country(), is(equalTo(country)));
   assertThat(actualFacility.region(), is(equalTo(region)));
   assertThat(actualFacility.province(), is(equalTo(province)));
   assertThat(actualFacility.district(), is(equalTo(district)));
   assertThat(actualFacility.mrsFacility().getId(), is(equalTo(facilityId)));
 }
  @Test
  public void shouldReturnListOfFacilitiesByNameEvenIfTheRecordsAreMissingInCouchDb() {
    final String facilityName = "name";
    final String country = "country";
    final String region = "region";
    final String district = "district";
    final String province = "province";
    final String mrsFacilityId = "13";

    final MRSFacility mrsFacility =
        new MRSFacility(mrsFacilityId, facilityName, country, region, district, province);
    when(mockMrsFacilityAdaptor.getFacilities(facilityName)).thenReturn(Arrays.asList(mrsFacility));

    final List<Facility> actualFacilities = allFacilities.facilitiesByName(facilityName);

    final Facility actualFacility = actualFacilities.iterator().next();
    assertThat(actualFacility.name(), is(equalTo(facilityName)));
    assertThat(actualFacility.country(), is(equalTo(country)));
    assertThat(actualFacility.region(), is(equalTo(region)));
    assertThat(actualFacility.province(), is(equalTo(province)));
    assertThat(actualFacility.district(), is(equalTo(district)));
  }