public void testPostContentLanguage() {
Payload payload = newStringPayload("foo");
payload.getContentMetadata().setContentLanguage("mi, en");
Multimap<String, String> headers = client.postPayloadAndReturnHeaders("", payload);
assertEquals(headers.get("x-Content-Language"), ImmutableList.of("mi, en"));
payload.release();
}
@Test(invocationCount = 5, timeOut = 5000)
public void testPut() {
assertEquals(client.upload("", "foo").trim(), "fooPUT");