def METHOD_NAME(record_dict, mock_record):
    # response data is now sorted by date just before return in search.py
    # so test cases should be sorted with same method when testing against search.py
    sorted_mock_record = RecordCreator.sort_record_by_case_date(mock_record)
    assert record_dict["total_balance_due"] == mock_record.total_balance_due
    case_numbers = [case["case_number"] for case in record_dict["cases"]]
    mocked_case_numbers = [case.summary.case_number for case in sorted_mock_record.cases]
    assert case_numbers == mocked_case_numbers