@Test
public void of() {

    final WhoamiResponse response = WhoamiResponse.of(USER_INFORMATION, DITTO_HEADERS);
    assertThat(response.getDittoHeaders()).isEqualTo(DITTO_HEADERS);
    assertThat(response.getEntity()).isEqualTo(USER_INFORMATION.toJson());
}