Reflection

1. A software company requires each class to have a non-static, parameterless method called test. This method tests the class and returns true if the class passes the test and false otherwise.

Complete the implementation of the following test driver:

class TestDriver {
   public boolean test(Collection<String> classNames) { ??? }
}

TestDriver.test gets a collection of class names as its input. It loads each class and invokes its test method. If all of the tests pass, true is returned, otherwise false is returned. Note: All tests must be run, even if some fail.