public static Search<?> searchResourcesWithGenericParameters(String fhirStore) {
    return new Search<>(fhirStore);
  }
@Test
  public void test_FhirIO_failedSearchesWithGenericParameters() {
    FhirSearchParameter<List<String>> input = FhirSearchParameter.of("resource-type-1", null);
    FhirIO.Search.Result searchResult =
        pipeline
            .apply(
                Create.of(input)
                    .withCoder(FhirSearchParameterCoder.of(ListCoder.of(StringUtf8Coder.of()))))
            .apply(
                (FhirIO.Search<List<String>>)
                    FhirIO.searchResourcesWithGenericParameters("bad-store"));

    PCollection<HealthcareIOError<String>> failed = searchResult.getFailedSearches();

    PCollection<String> failedMsgIds =
        failed.apply(
            MapElements.into(TypeDescriptors.strings()).via(HealthcareIOError::getDataResource));

    PAssert.that(failedMsgIds).containsInAnyOrder(input.toString());
    PAssert.that(searchResult.getResources()).empty();
    PAssert.that(searchResult.getKeyedResources()).empty();
    pipeline.run();
  }