public int getEstimatedRequestedSegmentsUsage() {
        int totalNumberOfMemorySegments = getTotalNumberOfMemorySegments();
        return totalNumberOfMemorySegments == 0
                ? 0
                : Math.toIntExact(
                        100L
                                * getEstimatedNumberOfRequestedMemorySegments()
                                / totalNumberOfMemorySegments);
    }
@Test
    void testEmptyPoolSegmentsUsage() throws IOException {
        try (CloseableRegistry closeableRegistry = new CloseableRegistry()) {
            NetworkBufferPool globalPool = new NetworkBufferPool(0, 128);
            closeableRegistry.registerCloseable(globalPool::destroy);
            assertThat(globalPool.getEstimatedRequestedSegmentsUsage()).isZero();
        }
    }