async def METHOD_NAME(self):
    """Test that the number of failed tests is returned."""
    jenkins_json = {
        "failCount": 2,
        "passCount": 1,
        "suites": [
            {
                "cases": [
                    {"status": "FAILED", "name": "tc1", "className": "c1", "age": 1},
                    {"status": "FAILED", "name": "tc2", "className": "c2", "age": 2},
                    {"status": "PASSED", "name": "tc3", "className": "c3", "age": 0},
                ],
            },
        ],
    }
    self.set_source_parameter("test_result", ["failed"])
    response = await self.collect(get_request_json_return_value=jenkins_json)
    expected_entities = [
        {"class_name": "c1", "key": "tc1", "name": "tc1", "test_result": "failed", "age": "1"},
        {"class_name": "c2", "key": "tc2", "name": "tc2", "test_result": "failed", "age": "2"},
    ]
    self.assert_measurement(response, value="2", total="3", entities=expected_entities)