try {
MarconiApi api = api(server.getUrl("/").toString(), "openstack-marconi");
ClaimApi claimApi = api.getClaimApiForZoneAndClientAndQueue("DFW", CLIENT_ID, "jclouds-test");
Claim claim = claimApi.get("52a8d23eb04a584f1bbd4f47");
assertEquals(claim.getMessages().size(), 2);
assertEquals(claim.getId(), "52a8d23eb04a584f1bbd4f47");
assertEquals(claim.getAge(), 209);
assertEquals(claim.getTTL(), 300);
assertEquals(claim.getMessages().get(0).getId(), "52a8a379b04a584f2ec2bc3e");
assertEquals(claim.getMessages().get(0).getClaimId().get(), "52a8d23eb04a584f1bbd4f47");
assertEquals(claim.getMessages().get(0).getAge(), 12182);
assertEquals(claim.getMessages().get(0).getTTL(), 86400);
assertEquals(claim.getMessages().get(1).getId(), "52a8a379b04a584f2ec2bc3f");
assertEquals(claim.getMessages().get(1).getClaimId().get(), "52a8d23eb04a584f1bbd4f47");
assertEquals(claim.getMessages().get(1).getAge(), 12182);
assertEquals(claim.getMessages().get(1).getTTL(), 86400);
assertEquals(server.getRequestCount(), 2);
assertEquals(server.takeRequest().getRequestLine(), "POST /tokens HTTP/1.1");
assertEquals(server.takeRequest().getRequestLine(), "GET /v1/123123/queues/jclouds-test/claims/52a8d23eb04a584f1bbd4f47 HTTP/1.1");
}