HttpResponse listRecordsByGroupCoordinatesResponse = HttpResponse.builder().statusCode(OK.getStatusCode())
.payload(payloadFromResourceWithContentType("/directionalrecords.xml", "application/xml")).build();
public void testListRecordsByGroupCoordinatesWhenResponseIs2xx() {
UltraDNSWSApi success = requestSendsResponse(listRecordsByGroupCoordinates, listRecordsByGroupCoordinatesResponse);
DirectionalGroupCoordinates group = DirectionalGroupCoordinates.builder()
.zoneName("jclouds.org.")
.recordName("www.jclouds.org.")
.recordType(1)
.groupName("EU-www.jclouds.org.").build();
assertEquals(
success.getDirectionalGroupApiForAccount("accountid").listRecordsByGroupCoordinates(group).toString(),
new GetDirectionalDNSRecordsForHostResponseTest().expected().toString());
}