public void testCreateWithContactWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, create, createResponse);
   assertEquals(
       success.getZoneApi().scheduleCreateWithContact("jclouds.org", "*****@*****.**"),
       Job.success(285351593L));
 }
 public void testGetWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, get, getResponse);
   assertEquals(
       success.getZoneApi().get("jclouds.org").toString(),
       new GetZoneResponseTest().expected().toString());
 }
 public void testThawWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, thaw, deleteResponse);
   assertEquals(
       success.getZoneApi().thaw("jclouds.org").toString(),
       new DeleteZoneResponseTest().expected().toString());
 }
 public void testCreateWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, create, createResponse);
   assertEquals(
       success
           .getZoneApi()
           .scheduleCreate(
               CreatePrimaryZone.builder()
                   .fqdn("jclouds.org")
                   .contact("*****@*****.**")
                   .build()),
       Job.success(285351593L));
 }
 public void testDeleteWhenResponseIs404() {
   DynECTApi fail = requestsSendResponses(createSession, createSessionResponse, delete, notFound);
   assertNull(fail.getZoneApi().delete("jclouds.org"));
 }
 public void testListWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, list, listResponse);
   assertEquals(
       success.getZoneApi().list().toString(), new ListZonesResponseTest().expected().toString());
 }