@Override
    public Long computeValue(final Collection<T> elementsInBin, final int totalElements) {
        if (totalElements > 0) {
            return (long) (100 * ((float) elementsInBin.size() / totalElements));
        } else {
            return 0L;
        }
    }
@Test
    void testReturnsProperPercentage() {
        final Long result = toTest.computeValue(
                List.of(
                        QueryExecutionStats.builder().duration(13).build()
                ),
                50
        );
        assertEquals(2, result); //1 out of 50 is 2%
    }