assertTrue(request2.isForbidden());
}
@Test
public void testDelete() throws Exception {
Post request1 = createFile("filestest.gpx");
request1.executeAsString();
String result1 = request1.getLocation();
int key = parseFileKey(result1);
HttpRequest request2 = deleteFile(key);
String result2 = request2.executeAsString();
assertEquals("file " + key + " deleted", result2);
assertEquals(200, request2.getStatusCode());