Payload payload = object.getPayload();
assertEquals(payload.getContentMetadata().getContentLength(), Long.valueOf(4));
assertEquals(payload.getContentMetadata().getContentType(), "text/plain; charset=UTF-8");
assertEquals(payload.getContentMetadata().getExpires(), dates.rfc822DateParse("Wed, 23 Jul 2014 14:00:00 GMT"));
assertEquals(toStringAndClose(payload.openStream()), "ABCD");
assertEquals(server.getRequestCount(), 2);
assertEquals(server.takeRequest().getRequestLine(), "POST /tokens HTTP/1.1");
RecordedRequest get = server.takeRequest();
assertEquals(get.getRequestLine(),