code: func (sa *StorageAuthority) GetOrder(_ context.Context, req *sapb.OrderRequest) (*corepb.Order, error) {
  	if *req.Id == 2 {
  		return nil, berrors.NotFoundError("bad")
  	} else if *req.Id == 3 {
  		return nil, errors.New("very bad")
  	}
  
  	status := string(core.StatusValid)
  	one := int64(1)
  	serial := "serial"
  	exp := sa.clk.Now().AddDate(30, 0, 0).Unix()
  	validOrder := &corepb.Order{
  		Id:                req.Id,
  		RegistrationID:    &one,
  		Expires:           &exp,
  		Names:             []string{"example.com"},
  		Status:            &status,
  		Authorizations:    []string{"hello"},
  		CertificateSerial: &serial,
  		Error:             nil,
  	}
  
  	// Order ID doesn't have a certificate serial yet
  	if *req.Id == 4 {
  		pending := string(core.StatusPending)
  		validOrder.Status = &pending
  		validOrder.Id = req.Id
  		validOrder.CertificateSerial = nil
  		validOrder.Error = nil
  		return validOrder, nil
  	}
  
  	// Order ID 6 belongs to reg ID 6
  	if *req.Id == 6 {
  		six := int64(6)
  		validOrder.Id = req.Id
  		validOrder.RegistrationID = &six
  	}
  
  	// Order ID 7 is ready, but expired
  	if *req.Id == 7 {
  		ready := string(core.StatusReady)
  		validOrder.Status = &ready
  		exp = sa.clk.Now().AddDate(-30, 0, 0).Unix()
  		validOrder.Expires = &exp
  	}
  
  	if *req.Id == 8 {
  		ready := string(core.StatusReady)
  		validOrder.Status = &ready
  	}
  
  	return validOrder, nil
  }
docs: // GetOrder is a mock