public void should_access_secured_resource_with_http_basic_no_session() throws Exception {
threadLocal()
.set(activationKey(RestxSessionCookieFilter.class, "RestxSessionCookieFilter"), "false")
.set(activationKey(RestxSessionBareFilter.class, "RestxSessionBareFilter"), "true");
HttpTestClient client = server.client();
HttpRequest httpRequest = client.GET("/api/security/user")
.basic("admin", Hashing.md5().hashString("juma", Charsets.UTF_8).toString());
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.header("Set-Cookie")).isNull();
assertThat(httpRequest.body().trim()).isEqualTo("admin");