@ExtendWith({ RepositoryManagementTestExecutionListener.class,

              ArtifactManagementTestExecutionListener.class })
@Test
void handlePartialDownloadWithSingleRange(@MavenRepository(repositoryId = REPOSITORY_RELEASES_1)
                                          Repository repository,
                                          @MavenTestArtifact(repositoryId = REPOSITORY_RELEASES_1,
                                                             id = "org.carlspring.strongbox:partial-single",
                                                             versions = "1.0")
                                          Path artifactPath)
        throws IOException
{
    // Given
    RepositoryPath artifactRepositoryPath = (RepositoryPath) artifactPath.normalize();
    try(InputStream is = artifactResolutionService.getInputStream(artifactRepositoryPath))
    {
        HttpHeaders httpHeaders = getHttpHeaders("100-199");
        HttpServletResponse response = new MockHttpServletResponse();
        // When
        ArtifactControllerHelper.handlePartialDownload(is, httpHeaders, response);
        // Then
        assertThat(response.getStatus()).isEqualTo(HttpStatus.PARTIAL_CONTENT.value());
    }
}