{
log.info("starting testSessionScope()");
// Need to supply each ClientRequest with a single ClientExecutor to maintain a single
// cookie cache, which keeps the session alive.
ClientExecutor executor = new ApacheHttpClient4Executor();
// Create a book, which gets stored in the session scoped BookBag.
ClientRequest request = new ClientRequest("http://localhost:8080/resteasy-cdi-ejb-test/rest/session/add/", executor);
Book book1 = new Book(13, "Dead Man Napping");
request.body(Constants.MEDIA_TYPE_TEST_XML, book1);