def METHOD_NAME(aggregator, instance):
    erroring_query = mock.Mock(side_effect=Exception("I'm broken"))
    erroring_query.__name__ = 'Erroring query'
    ibmdb2 = IbmDb2Check('ibm_db2', {}, [instance])
    ibmdb2._conn = mock.MagicMock()
    ibmdb2.get_connection = mock.MagicMock()
    ibmdb2._query_methods = (mock.Mock(), erroring_query, mock.Mock())
    ibmdb2.check(instance)
    for query_method in ibmdb2._query_methods:
        query_method.assert_called()