void () { final int numClasses = 100; final List<String> expectedMRO = new ArrayList<>(); for (int i = numClasses - 1; i >= 1; i--) { expectedMRO.add(String.format("Class%03d", i)); } expectedMRO.add("object"); final PyClass pyClass = getClass(String.format("Class%03d", numClasses)); final long startTime = System.currentTimeMillis(); assertMRO(pyClass, ArrayUtilRt.toStringArray(expectedMRO)); final long elapsed = System.currentTimeMillis() - startTime; assertTrue("Calculation of MRO takes too much time: " + elapsed + " ms", elapsed < 1000); }