public void testRemoveSessionPersistence() {
    URI endpoint =
        URI.create(
            "https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/2000/sessionpersistence");
    SessionPersistenceApi api =
        requestsSendResponses(
                rackspaceAuthWithUsernameAndApiKey,
                responseWithAccess,
                authenticatedGET().method("DELETE").endpoint(endpoint).build(),
                HttpResponse.builder().statusCode(200).build())
            .getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

    api.remove();
  }
  public void testCreateSessionPersistence() {
    URI endpoint =
        URI.create(
            "https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/2000/sessionpersistence");
    SessionPersistenceApi api =
        requestsSendResponses(
                rackspaceAuthWithUsernameAndApiKey,
                responseWithAccess,
                authenticatedGET()
                    .method("PUT")
                    .endpoint(endpoint)
                    .payload(payloadFromResource("/sessionpersistence-create.json"))
                    .build(),
                HttpResponse.builder().statusCode(200).build())
            .getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

    api.create(SessionPersistence.HTTP_COOKIE);
  }
  public void testGetDeletedSessionPersistence() {
    URI endpoint =
        URI.create(
            "https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/2000/sessionpersistence");
    SessionPersistenceApi api =
        requestsSendResponses(
                rackspaceAuthWithUsernameAndApiKey,
                responseWithAccess,
                authenticatedGET().endpoint(endpoint).build(),
                HttpResponse.builder()
                    .statusCode(200)
                    .payload(payloadFromResource("/sessionpersistence-get-deleted.json"))
                    .build())
            .getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

    SessionPersistence sessionPersistence = api.get();
    assertNull(sessionPersistence);
  }