@Test
void withBulkDataURI() throws IOException {

    URL srcURL = resource("waveform_overlay_pixeldata.dcm");
    Path sourcePath = Paths.get(URI.create(srcURL.toString()));
    DicomObject data = parseWithBulkDataURI(sourcePath);
    DicomElement seq = data.get(Tag.WaveformSequence).orElseGet(Assertions::fail);
    DicomObject item = seq.getItem(0);
    assertNotNull(item);
    DicomElement waveformData = item.get(Tag.WaveformData).orElseGet(Assertions::fail);
    assertTrue(waveformData.bulkDataURI()
            .endsWith("waveform_overlay_pixeldata.dcm#offset=32&length=256"));
    DicomElement overlayData = data.get(Tag.OverlayData).orElseGet(Assertions::fail);
    assertTrue(overlayData.bulkDataURI()
            .endsWith("waveform_overlay_pixeldata.dcm#offset=300&length=256"));
    DicomElement pixelData = data.get(Tag.PixelData).orElseGet(Assertions::fail);
    assertTrue(pixelData.bulkDataURI()
            .endsWith("waveform_overlay_pixeldata.dcm#offset=568"));
    assertTrue(data.get(Tag.DataSetTrailingPadding).isPresent());
}