context 'when request succeeds' do
      it 'returns the response' do
        stub_request(:post, "https://#{peer}/api/regsharing")
          .with(
            body: JSON.dump(expected_payload),