@Test public void it_extracts_the_correct_information_from_the_header_fields() { assertEquals("user", new SipInvite(INVITE_PACKET_WITH_REMOTE_PARTY_ID).getRemotePartyId().name); assertEquals("247", new SipInvite(INVITE_PACKET_WITH_REMOTE_PARTY_ID).getRemotePartyId().number); }
CallerInformationHeader getRemotePartyId() { return remotePartyId; }
SipInvite { CallerInformationHeader getRemotePartyId() { return remotePartyId; } }
SipInvite { CallerInformationHeader getRemotePartyId() { return remotePartyId; } SipInvite(String packet); }
SipInvite { CallerInformationHeader getRemotePartyId() { return remotePartyId; } SipInvite(String packet);  }
SipInvite { CallerInformationHeader getRemotePartyId() { return remotePartyId; } SipInvite(String packet);   }