### Question:
SipInvite { boolean hasRemotePartyId() { return remotePartyId != null; } SipInvite(String packet);   }### Answer:
@Test public void it_checks_if_an_invite_has_a_remote_party_id() { assertTrue(new SipInvite(INVITE_PACKET_WITH_REMOTE_PARTY_ID).hasRemotePartyId()); assertFalse(new SipInvite(INVITE_PACKET_WITHOUT_REMOTE_PARTY_ID).hasRemotePartyId()); }