PRPAIN201306UV02Parser { public static String getQueryId(PRPAIN201306UV02 response) { String oid = null; if (response != null && response.getControlActProcess() != null && response.getControlActProcess().getQueryByParameter() != null && response.getControlActProcess().getQueryByParameter().getValue() != null && response.getControlActProcess().getQueryByParameter().getValue().getQueryId() != null) { oid = response.getControlActProcess().getQueryByParameter().getValue().getQueryId().getExtension(); } return oid; }  static String getQueryId(PRPAIN201306UV02 response); static List<II> getPatientIds(PRPAIN201306UV02 response); static String getSenderHcid(PRPAIN201306UV02 response); static String getReceiverHCID(PRPAIN201306UV02 response);  }
@Test public void testQueryId() { assertEquals("QueryId mismatch", PRPAIN201306UV02Parser.getQueryId(TestPatientDiscoveryMessageHelper. createPRPAIN201306UV02Response("Gallow", "Younger", "M", "01-12-2967", "1.1", "D12345", "2.2", "abd3453dcd24wkkks545")), "abd3453dcd24wkkks545"); }