@Test(groups = SMALL, expectedExceptions = ConfigurationException.class)
public void testThrowsConfigurationExceptionWhenSqlExceptionOccures() throws SQLException {

    ConnectionProvider mockedProvider = mock(ConnectionProvider.class);
    Connection mockedConnection = mock(Connection.class);
    when(mockedProvider.getConnection()).thenReturn(mockedConnection);
    when(mockedConnection.createStatement()).thenThrow(new SQLException());
    MysqlConfigurator configurator = new MysqlConfigurator(mockedProvider, TEST_TABLE_NAME);
    configurator.setup();
}