@Test
void testSingleWeight() {

    NonNegativeIntegerSplitterByWeights<String> splitter = new NonNegativeIntegerSplitterByWeights<>(ImmutableMap.of(
            "A", 1d));
    Assertions.assertEquals(1, (int)splitter.split(1).get("A"));
    Assertions.assertEquals(100, (int)splitter.split(100).get("A"));
}