def METHOD_NAME(cert_path, thumbprint, certs, json_certs):
    """
    Test - Get the details of the certificate file.
    """
    kwargs = {"name": cert_path}
    with patch.dict(win_pki.__salt__), patch(
        "os.path.isfile", MagicMock(return_value=True)
    ), patch("salt.modules.win_pki._cmd_run", MagicMock(return_value=json_certs)):
        assert win_pki.get_cert_file(**kwargs) == certs[thumbprint]