@Test(priority = 2, groups = { "wso2.esb" }, dependsOnMethods = { "testCreateContactGroupWithMandatoryParameters" },
description = "Google Contacts {retrieveSingleContactGroup integration test with mandatory parameters.")
public void testRetrieveSingleContactGroup() throws Exception {
Map<String, String> parametersMap = new HashMap<String, String>();
parametersMap.put("groupId", groupId);
SOAPEnvelope esbSoapResponse =
sendSOAPRequest(proxyUrl, "esb_retrieveSingleContactGroup_mandatory.xml", parametersMap);
ContactGroupEntry directResponse = (ContactGroupEntry) directInvoker.retrieveSingleContactGroup(groupId);
Assert.assertEquals((String) xPathEvaluate(esbSoapResponse.getBody().getFirstElement(), "string(//atom:id/text())", nameSpaceMap),
directResponse.getId());
Assert.assertEquals((String) xPathEvaluate(esbSoapResponse.getBody().getFirstElement(), "string(//atom:title/text())", nameSpaceMap),
directResponse.getTitle().getPlainText());
Assert.assertEquals((String) xPathEvaluate(esbSoapResponse.getBody().getFirstElement(), "string(//atom:content/text())", nameSpaceMap),
((TextContent) directResponse.getContent()).getContent().getPlainText());
}