void (int sizeBefore, @NotNull FMap<String, String> updatedMap, int removedKey) { List<String> expectedKeys = IntStream.range(0, sizeBefore) .filter(i -> i != removedKey) .mapToObj(FMapTest::key) .collect(Collectors.toList()); assertSameElements(updatedMap.keys(), expectedKeys); }