PDMessageGeneratorUtils extends MessageGeneratorUtils { public CommunityPRPAIN201306UV02ResponseType createCommunityPRPAIN201306UV02ResponseType(String hcid) { NhinTargetCommunityType target = new NhinTargetCommunityType(); HomeCommunityType home = new HomeCommunityType(); home.setHomeCommunityId(hcid); target.setHomeCommunity(home); CommunityPRPAIN201306UV02ResponseType communityResponse = new CommunityPRPAIN201306UV02ResponseType(); communityResponse.setNhinTargetCommunity(target); return communityResponse; } PDMessageGeneratorUtils(); static PDMessageGeneratorUtils getInstance(); II extractPatientIdFromSubject(PRPAIN201306UV02MFMIMT700711UV01Subject1 subject); CommunityPRPAIN201306UV02ResponseType createCommunityPRPAIN201306UV02ResponseType(String hcid); RespondingGatewayPRPAIN201305UV02RequestType createRespondingGatewayRequest(PRPAIN201305UV02 message,
        AssertionType assertion, NhinTargetCommunitiesType targets); RespondingGatewayPRPAIN201306UV02RequestType createRespondingGatewayRequest(PRPAIN201306UV02 message,
        AssertionType assertion, NhinTargetCommunitiesType target); NhinTargetSystemType createNhinTargetSystemType(String exchangeName, String url, String hcid);  }
@Test public void createCommunityPRPAIN201306UV02ResponseType() { CommunityPRPAIN201306UV02ResponseType response = msgUtils.createCommunityPRPAIN201306UV02ResponseType("1.1"); assertEquals("1.1", response.getNhinTargetCommunity().getHomeCommunity().getHomeCommunityId()); assertNull(response.getPRPAIN201306UV02()); }