@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 testReturnsZeroOnNoData() {
        final Long result = toTest.computeValue(List.of(), 42);
        assertEquals(0, result);
    }