@ExtendWith(RepositoryManagementTestExecutionListener.class)
@Test
public void testSetProxyRepositoryMaxConnections(@RawRepository(repositoryId = REPOSITORY_RELEASES_2)
                                                 Repository releases2) throws IOException
{

    final String storageId = releases2.getStorage().getId();
    final String releases2Id = releases2.getId();
    configurationManagementService.setProxyRepositoryMaxConnections(storageId,
                                                                    releases2Id,
                                                                    10);
    HttpConnectionPool pool = configurationManagementService.getConfiguration()
                                                            .getHttpConnectionPoolConfiguration(storageId,
                                                                                                releases2Id);
    assertThat(pool).isNotNull();
    assertThat(pool.getAllocatedConnections()).isEqualTo(10);
}