code: func (sa *StorageAuthority) GetAuthorization(_ context.Context, id string) (core.Authorization, error) {
  	authz := core.Authorization{
  		ID:             "valid",
  		Status:         core.StatusValid,
  		RegistrationID: 1,
  		Identifier:     core.AcmeIdentifier{Type: "dns", Value: "not-an-example.com"},
  		Challenges: []core.Challenge{
  			{
  				ID:    23,
  				Token: "token",
  				Type:  "dns",
  			},
  		},
  	}
  	// Strip a leading `/` to make working with fake URLs in signed JWS tests easier.
  	id = strings.TrimPrefix(id, "/")
  
  	if id == "valid" {
  		exp := sa.clk.Now().AddDate(100, 0, 0)
  		authz.Expires = &exp
  		authz.Challenges[0].URI = "http://localhost:4300/acme/challenge/valid/23"
  		return authz, nil
  	} else if id == "pending" {
  		exp := sa.clk.Now().AddDate(100, 0, 0)
  		authz.Expires = &exp
  		authz.Status = core.StatusPending
  		return authz, nil
  	} else if id == "expired" {
  		exp := sa.clk.Now().AddDate(0, -1, 0)
  		authz.Expires = &exp
  		authz.Challenges[0].URI = "http://localhost:4300/acme/challenge/expired/23"
  		return authz, nil
  	} else if id == "error_result" {
  		return core.Authorization{}, fmt.Errorf("Unspecified database error")
  	} else if id == "diff_acct" {
  		exp := sa.clk.Now().AddDate(100, 0, 0)
  		authz.RegistrationID = 2
  		authz.Expires = &exp
  		authz.Challenges[0].URI = "http://localhost:4300/acme/challenge/valid/23"
  		return authz, nil
  	}
  
  	return core.Authorization{}, berrors.NotFoundError("no authorization found with id %q", id)
  }
docs: // GetAuthorization is a mock