servletContainer.service(URI.create("http://localhost/"), URI.create("/guestbook/default"),
request, response);
logger.fine(resultBuffer.toString().trim());
Gson gson = new GsonBuilder().create();
GuestbookResponse result = gson.fromJson(resultBuffer.toString().trim(),
GuestbookResponse.class);
assertThat(result.getGuestbookName(), is("default"));
assertThat(result.getGreetings().size(), is(1));
Greeting greeting = result.getGreetings().get(0);
assertThat(greeting.getContent(), is("Test message"));
assertThat(greeting.getAuthor(), is("test@example.com"));
assertThat(greeting.getDate(), instanceOf(Date.class));
assertThat(result.getUserServiceInfo(), nullValue());
}