@Test
public void testOpenConnectionUsingUnknownDriver() throws ClassNotFoundException {

    // GIVEN
    final BasicDataSource ds = new BasicDataSource();
    ds.setDriverClassName("unknown");
    // WHEN
    try {
        connection = DatabaseConnectionFactory.openConnection(ds);
        fail("JpaTestException is expected");
    } catch (final JpaUnitException e) {
        // THEN
        // JpaTestException is thrown
    }
}