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

    Connection mockedConnection = mock(Connection.class);
    when(mockedConnection.prepareStatement(anyString(), anyInt())).thenThrow(new SQLException());
    MysqlConnectionProvider mockedProvider = mock(MysqlConnectionProvider.class);
    when(mockedProvider.getConnection()).thenReturn(mockedConnection);
    ListenerRepo mockedRepo = new ListenerRepo();
    mockedRepo.insert(mock(Listener.class), mockedConnection);
}