function testDatabaseExceptionWrapper() {
$connection = Database::getConnection();
$query = $connection
->prepare('bananas');
try {
$connection
->query($query);
$this
->fail('The expected exception is not thrown.');
} catch (DatabaseExceptionWrapper $e) {
$this
->pass('The expected exception has been thrown.');
}
}