使用assertArrayEquals代替assertIterableEquals。例如:
@Test
void testList() {
List expectedList = Arrays.asList("apple", "banana", "orange");
List actualList = new ArrayList<>(expectedList); // 新建一个实际上等同于expectedList的List
assertArrayEquals(expectedList.toArray(), actualList.toArray()); // 使用assertArrayEquals比较两个List
}