def METHOD_NAME(self):
    from prowler.providers.aws.services.ec2.ec2_service import EC2
    current_audit_info = self.set_mocked_audit_info()
    ssm_client = mock.MagicMock
    ssm_client.managed_instances = {}
    with mock.patch(
        "prowler.providers.aws.lib.audit_info.audit_info.current_audit_info",
        new=current_audit_info,
    ), mock.patch(
        "prowler.providers.aws.services.ssm.ssm_service.SSM",
        new=ssm_client,
    ), mock.patch(
        "prowler.providers.aws.services.ssm.ssm_client.ssm_client",
        new=ssm_client,
    ), mock.patch(
        "prowler.providers.aws.services.ec2.ec2_instance_managed_by_ssm.ec2_instance_managed_by_ssm.ec2_client",
        new=EC2(current_audit_info),
    ):
        # Test Check
        from prowler.providers.aws.services.ec2.ec2_instance_managed_by_ssm.ec2_instance_managed_by_ssm import (
            ec2_instance_managed_by_ssm,
        )
        check = ec2_instance_managed_by_ssm()
        result = check.execute()
        assert len(result) == 0