Given the JUnit 4 test below:           @Test(expected = Ind…

Given the JUnit 4 test below:           @Test(expected = IndexOutOfBoundsException.class)        public void testIndex() {            List list = new ArrayList();            list.add(“apple”);            list.add(“orange”);            list.get(4);        }   Which of the following is/are true (select all correct answer(s) and no incorrect answer(s) to get credit):

Consider the following (incomplete) JUnit theory for compare…

Consider the following (incomplete) JUnit theory for compareTo() (from the Comparable interface) and equals().      @Theory public void compareToConsistentWithEquals( … ) {      assumeTrue (…);   // Assume none of the parameters are null  (i.e. no NPE)      assumeTrue (…);   // Assume parameters are mutually comparable (i.e. no CCE)            assertTrue (…);   //Assume that the assumeTrue(…) statements are correctly implemented.     } How many parameters should this theory have?