@Override
    public Long computeValue(final Collection<T> elementsInBin, final int totalElements) {
        return (long) elementsInBin.stream()
                .mapToLong(valueRetrievalFunction)
                .average()
                .orElse(0L);
    }
@Test
    void testReturnsZeroOnNoData() {
        final Long result = toTest.computeValue(List.of(), 42);
        assertEquals(0, result);
    }