assertApply(responseStatus, initResourceConfig(disableValidation, disableAutoDiscovery, registerFeature), uri);
if (responseStatus == 500) {
// validation works - environment is validation friendly -> let's try to disable META-INF/services lookup
final ResourceConfig resourceConfig = initResourceConfig(disableValidation, disableAutoDiscovery, true);
resourceConfig.property(ServerProperties.METAINF_SERVICES_LOOKUP_DISABLE, true);
assertApply(500, resourceConfig, uri);
}
}