getConnection().close();
// Shut down the engine. This used to fail with an
// AccessControlException on Java 8 before DERBY-6224.
TestConfiguration config = TestConfiguration.getCurrent();
config.shutdownEngine();
// Test whether shutdown deregistered the driver. On versions prior
// to Java 8/JDBC 4.2, we expect the driver to be deregistered even
// though the permission is missing, and the call to getDrivers()
// should not return any instance of AutoloadedDriver.