@Test
    public void testIntermixedCalls20x20() {
        for (int j = 0; j < 50; j++) {
            System.out.println("Test Intermixed Calls 20x20: run #" + (j + 1));
            Picture inputImg = SCUtility.randomPicture(20, 20);
            SeamCarver sc = new SeamCarver(inputImg);
            int calls = 15;
            for (int i = 0; i < calls; i++) {
                int index = StdRandom.uniform(4);
                int[] a;
                switch(index) {
                    case 0:
                        System.out.println("Find vertical seam");
                        sc.findVerticalSeam(); break;
                    case 1:
                        System.out.println("Find horizontal seam");
                        sc.findHorizontalSeam(); break;
                    case 2: a = SCUtility.randomSeam(sc.width(), sc.height());
                            System.out.println("size = " + sc.width() + ", " + sc.height());
                            System.out.println("Horitontal seam:" + Arrays.toString(a));
                            sc.removeHorizontalSeam(a);
                            break;
                    case 3: a = SCUtility.randomSeam(sc.height(), sc.width());
                            System.out.println("size = " + sc.width() + ", " + sc.height());
                            System.out.println("Vertical seam:" + Arrays.toString(a));
                            sc.removeVerticalSeam(a);
                            break;
                }
            }
        }
    }