try {
HttpRequest 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/test.txt").send("bonjour");
assertThat(httpRequest.code()).isEqualTo(HttpStatus.CREATED.getCode());
httpRequest = HttpRequest.get(server.baseUrl() + "/api/test/test.txt");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("bonjour");