Which line of code is needed at the beginning of the follow block of code used to test whether remove throws the correct exception:

              try
              {
                collection.remove(item);
              }
              catch (Exception exception)
              {
                thrown = exception;
              }

              assertNotNull(thrown);


              assertTrue(thrown instanceof NoSuchElementException);

              assertEquals(thrown.getMessage(), "That item is not in the collection.");

            

Exception thrown = null;
  • Exception thrown;
  • Exception thrown = NoSuchElementException;
  • Exception thrown = That item is not in the collection.";

There are no hints for this question