### Question:
AbstractBundleResourceProvider extends AbstractUntypedResourceProvider { @Nonnull protected IIdType getIdFromRequestUrl( @Nonnull String url ) { final int index = url.indexOf( '?' ); if ( index > 0 ) { url = url.substring( 0, index ); } return new IdDt( url ); } AbstractBundleResourceProvider(
        @Nonnull FhirClientResourceRepository fhirClientResourceRepository,
        @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository,
        @Nonnull RequestCacheService requestCacheService );   }### Answer:
@Test public void getIdFromRequestUrl() { final IIdType id = bundleResourceProvider.getIdFromRequestUrl( "Patient/471192" ); Assert.assertEquals( new IdDt( "Patient/471192" ), id ); Assert.assertEquals( "Patient", id.getResourceType() ); Assert.assertEquals( "471192", id.getIdPart() ); }
@Test public void getIdFromRequestUrlFull() { final IIdType id = bundleResourceProvider.getIdFromRequestUrl( "http: Assert.assertEquals( new IdDt( "http: Assert.assertEquals( "Patient", id.getResourceType() ); Assert.assertEquals( "471192", id.getIdPart() ); }