void (@NotNull List<CommittedChangeList> result, long[] @NotNull ... numbers) { final Set<Long> nums = new HashSet<>(); final Map<Long, Integer> zipped = new HashMap<>(); for (long[] pair : numbers) { assertTrue(pair.length == 2); nums.add(pair[0]); if (pair[1] != 1) { zipped.put(pair[0], (int) pair[1]); } } long previous = -1; for (CommittedChangeList list : result) { assertTrue("Ordering error: " + list.getNumber(), previous <= list.getNumber()); assertTrue("Result does not contain: " + list.getNumber(), nums.contains(list.getNumber())); final Integer num = zipped.get(list.getNumber()); if (num != null) { assertTrue("Zipped number differs: list#" + list.getNumber() + "; number:" + list.getComment(), String.valueOf(num).equals(list.getComment())); } else { assertTrue("Zipped number differs: too much for list where 1 must be: " + list.getNumber(), "1".equals(list.getComment())); } } }