PatientDiscoveryPolicyTransformHelper { protected HomeCommunityType getHomeCommunityFrom201305(RespondingGatewayPRPAIN201305UV02RequestType event) { HomeCommunityType senderHomeCommunity = new HomeCommunityType(); if (event != null && event.getPRPAIN201305UV02().getSender() != null && event.getPRPAIN201305UV02().getSender().getDevice() != null && event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent() != null && event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent().getValue() != null && event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent().getValue() .getRepresentedOrganization() != null && event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent().getValue().getRepresentedOrganization() .getValue() != null && NullChecker.isNotNullish(event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent().getValue() .getRepresentedOrganization().getValue().getId()) && event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent().getValue().getRepresentedOrganization() .getValue().getId().get(0) != null && NullChecker.isNotNullish(event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent().getValue() .getRepresentedOrganization().getValue().getId().get(0).getRoot())) { senderHomeCommunity.setHomeCommunityId(event.getPRPAIN201305UV02().getSender().getDevice().getAsAgent() .getValue().getRepresentedOrganization().getValue().getId().get(0).getRoot()); } return senderHomeCommunity; }  CheckPolicyRequestType transformPatientDiscoveryNhincToCheckPolicy(PatDiscReqEventType event); CheckPolicyRequestType transformPRPAIN201305UV02ToCheckPolicy(PRPAIN201305UV02 prpain201305UV02,
        AssertionType assertion); CheckPolicyRequestType transformPatientDiscoveryEntityToCheckPolicy(
        RespondingGatewayPRPAIN201305UV02RequestType event);  }
@Test public void testGetHomeCommunityFrom201305() { RespondingGatewayPRPAIN201305UV02RequestType event = new RespondingGatewayPRPAIN201305UV02RequestType(); HomeCommunityType expectedReturnvalue = getHomeCommunityType(event); PatientDiscoveryPolicyTransformHelper testSubject = new PatientDiscoveryPolicyTransformHelper(); assertEquals(expectedReturnvalue.getHomeCommunityId(), "1.1"); testSubject.getHomeCommunityFrom201305(event); }