@Test
void testFavourFirstKeysInWeightMapForTies() {

    NonNegativeIntegerSplitterByWeights<String> splitter = new NonNegativeIntegerSplitterByWeights<>(ImmutableMap.of(
            "A", 1d,
            "B", 2d,
            "C", 1d
    ));
    ImmutableMap<String, Integer> splitInts = splitter.split(2);
    Assertions.assertEquals(1, (int) splitInts.get("A"));
    Assertions.assertEquals(1, (int) splitInts.get("B"));
    Assertions.assertEquals(0, (int) splitInts.get("C"));
}