httpRequest = HttpRequest.delete(server.baseUrl() + "/api/test/test.txt");
assertThat(httpRequest.code()).isEqualTo(HttpStatus.NO_CONTENT.getCode());
httpRequest = HttpRequest.delete(server.baseUrl() + "/api/test/test2.txt");
assertThat(httpRequest.code()).isEqualTo(HttpStatus.NO_CONTENT.getCode());
httpRequest = HttpRequest.get(server.baseUrl() + "/api/test/");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("[\n]");
httpRequest = HttpRequest.put(server.baseUrl() + "/api/test/dir/").send("[]");
assertThat(httpRequest.code()).isEqualTo(HttpStatus.CREATED.getCode());