void (String[] expected, VirtualFile[] result) { assertEquals(expected.length, result.length); Arrays.sort(expected); Arrays.sort(result, Comparator.comparing(VirtualFile::getName)); for(int i = 0; i < expected.length; i++){ String name = expected[i]; assertEquals(name, result[i].getName()); } }