---
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=490A9EE3206E1736F14A12E895DB0CF0; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '502'
      date:
      - Mon, 11 Mar 2013 00:24:42 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:42.672-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>baduser</username>\n        <password>badpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 400
      message: Bad Request
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=CCB3BD7893DAAA1E4F016370E269EE5D; Path=/crowd; Secure; HttpOnly
      content-type:
      - application/xml
      content-length:
      - '140'
      date:
      - Mon, 11 Mar 2013 00:24:42 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>INVALID_USER_AUTHENTICATION</reason><message>baduser</message></error>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=5AD94EB7AE069D0F41DE56EDDCAB2BA8; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '502'
      date:
      - Mon, 11 Mar 2013 00:24:44 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:44.716-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :get
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 200
      message: OK
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=8DA27AE45872A94678864064B3B90F3F; Path=/crowd; Secure; HttpOnly
      content-type:
      - application/xml
      content-length:
      - '943'
      date:
      - Mon, 11 Mar 2013 00:24:44 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd
      Test</display-name><email>crowduser@test.com</email><password><link rel="edit"
      href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:44.716-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :get
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/beefface
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 400
      message: Bad Request
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=F26509B621725BED8C82417206779344; Path=/crowd; Secure; HttpOnly
      content-type:
      - application/xml
      content-length:
      - '219'
      date:
      - Mon, 11 Mar 2013 00:24:45 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>INVALID_SSO_TOKEN</reason><message>Failed
      to find entity of type [com.atlassian.crowd.model.token.Token] with identifier
      [beefface]</message></error>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=DC211D54302A09A370DF23368A6D39EC; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '502'
      date:
      - Mon, 11 Mar 2013 00:24:45 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:46.821-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :get
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00?expand=user
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 200
      message: OK
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=F6794B78C059EEC70B712064CF8DF56E; Path=/crowd; Secure; HttpOnly
      content-type:
      - application/xml
      content-length:
      - '943'
      date:
      - Mon, 11 Mar 2013 00:24:47 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd
      Test</display-name><email>crowduser@test.com</email><password><link rel="edit"
      href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:46.821-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=2C96211C2D778C865E21AE1FA2326D66; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '502'
      date:
      - Mon, 11 Mar 2013 00:24:47 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:48.446-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
    body: <validation-factors></validation-factors>
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 200
      message: OK
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=F1D928D13119B0E187A04BC56B7366A7; Path=/crowd; Secure; HttpOnly
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '502'
      date:
      - Mon, 11 Mar 2013 00:24:49 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:49.176-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/beefface
    body: <validation-factors></validation-factors>
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 404
      message: Not Found
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=1F27A0BB9D68047C78BA4ED575EF9C9A; Path=/crowd; Secure; HttpOnly
      content-type:
      - application/xml
      content-length:
      - '147'
      date:
      - Mon, 11 Mar 2013 00:24:49 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>INVALID_SSO_TOKEN</reason><message>Token
      does not validate.</message></error>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=4055D377A42A32D5395F13DF4C43E663; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '502'
      date:
      - Mon, 11 Mar 2013 00:24:50 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:50.692-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :delete
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 204
      message: No Content
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=8C50A8581EA892D0E88C05563A87CB25; Path=/crowd; Secure; HttpOnly
      date:
      - Mon, 11 Mar 2013 00:24:50 GMT
    body: 
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :delete
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/beefface
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 204
      message: No Content
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=24192908140EF1B7DFBD6BE47B600C49; Path=/crowd; Secure; HttpOnly
      date:
      - Mon, 11 Mar 2013 00:24:51 GMT
    body: 
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=88C54408199016678E2FB5B88D327EF4; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/ygwy0j8e08aIgsNsqyxxWg00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '506'
      date:
      - Mon, 11 Mar 2013 00:24:51 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>ygwy0j8e08aIgsNsqyxxWg00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/ygwy0j8e08aIgsNsqyxxWg00"/><created-date>2013-03-10T20:24:52.892-04:00</created-date><expiry-date>2013-03-10T21:24:52.892-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :delete
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session?username=crowduser
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 204
      message: No Content
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=43B8266A83E45CFC5C48FB213101B779; Path=/crowd; Secure; HttpOnly
      date:
      - Mon, 11 Mar 2013 00:24:53 GMT
    body: 
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :delete
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session?username=beefface
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 404
      message: Not Found
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=D2DDB57DBD0CF98C9E9C38528D623DEC; Path=/crowd; Secure; HttpOnly
      content-type:
      - text/html;charset=utf-8
      content-length:
      - '979'
      date:
      - Mon, 11 Mar 2013 00:24:53 GMT
    body: ! '<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1
      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
      H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
      H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
      BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
      B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
      P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
      {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
      Status 404 - Not Found</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
      report</p><p><b>message</b> <u>Not Found</u></p><p><b>description</b> <u>The
      requested resource (Not Found) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
      Tomcat/6.0.32</h3></body></html>'
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :post
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
    body: ! "<authentication-context>\n        <username>crowduser</username>\n        <password>crowdpass</password>\n
      \     </authentication-context>"
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 201
      message: Created
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=32557A9568EF90FE671B2F6F93D8AEE5; Path=/crowd; Secure; HttpOnly
      location:
      - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00
      cache-control:
      - no-cache, no-store, no-transform
      content-type:
      - application/xml
      content-length:
      - '506'
      date:
      - Mon, 11 Mar 2013 00:24:54 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>DYSwgvwt91s3t4kx0ygUbw00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00"/><created-date>2013-03-10T20:24:54.980-04:00</created-date><expiry-date>2013-03-10T21:24:54.980-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :get
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00?expand=user
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 200
      message: OK
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=F761515ABA740278CB6AEF6733F0F5D5; Path=/crowd; Secure; HttpOnly
      content-type:
      - application/xml
      content-length:
      - '943'
      date:
      - Mon, 11 Mar 2013 00:24:54 GMT
    body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>DYSwgvwt91s3t4kx0ygUbw00</token><user
      name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd
      Test</display-name><email>crowduser@test.com</email><password><link rel="edit"
      href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link
      rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00"/><created-date>2013-03-10T20:24:54-04:00</created-date><expiry-date>2013-03-10T21:24:54.980-04:00</expiry-date></session>
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :get
    uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/search
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 415
      message: Unsupported Media Type
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      set-cookie:
      - JSESSIONID=A875FC00F5A906C5550F997F693B8F16; Path=/crowd; Secure; HttpOnly
      content-type:
      - text/html;charset=utf-8
      content-length:
      - '1117'
      date:
      - Mon, 11 Mar 2013 00:24:56 GMT
    body: ! '<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1
      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
      H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
      H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
      BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
      B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
      P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
      {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
      Status 415 - Unsupported Media Type</h1><HR size="1" noshade="noshade"><p><b>type</b>
      Status report</p><p><b>message</b> <u>Unsupported Media Type</u></p><p><b>description</b>
      <u>The server refused this request because the request entity is in a format
      not supported by the requested resource for the requested method (Unsupported
      Media Type).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>'
    http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
  request: !ruby/struct:VCR::Request
    method: :get
    uri: http://badname:badpass@127.0.0.1:8095/crowd/rest/usermanagement/1/search
    body: 
    headers:
      content-type:
      - text/xml
      authorization:
      - Basic YmFkbmFtZTpiYWRwYXNz
  response: !ruby/struct:VCR::Response
    status: !ruby/struct:VCR::ResponseStatus
      code: 401
      message: Unauthorized
    headers:
      server:
      - Apache-Coyote/1.1
      x-embedded-crowd-version:
      - Crowd/2.6.0
      x-crowd-user-management-version:
      - '1.3'
      www-authenticate:
      - BASIC realm="Crowd REST Service"
      content-type:
      - text/plain;charset=UTF-8
      transfer-encoding:
      - chunked
      date:
      - Mon, 11 Mar 2013 00:24:56 GMT
    body: Application failed to authenticate
    http_version: '1.1'