@Test
public void getUserProfileMessage() throws Exception {

    MockResponse mockResponse = new MockResponse().setBody("{\n"
          + "  \"profile_message\": {\n"
          + "    \"updated_at\": \"2011-07-18T11:40:19Z\",\n"
          + "    \"message\": \"My new profile message.\"\n"
          + "  }\n"
          + '}');
    // Enqueue twice
    server.enqueue(mockResponse);
    server.enqueue(mockResponse);
    Response<ProfileMessage, HttpError> response1 = resource.getUserProfileMessage("test").execute();
    // If no exception was thrown then the spec is build correctly.
    SafeCalendar safeCalendar = new SafeCalendar(2011, 6, 18, 11, 40, 19);
    safeCalendar.setTimeZone(TimeZone.getTimeZone("UTC"));
    assertThat(response1.body().updatedAt()).isEqualTo(safeCalendar);
    assertThat(response1.body().message()).isEqualTo("My new profile message.");
    Response<ProfileMessage, HttpError> response2 = resource.getOwnProfileMessage().execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response2.body().updatedAt()).isEqualTo(safeCalendar);
    assertThat(response2.body().message()).isEqualTo("My new profile message.");
}