in src/it/java/com/epam/digital/data/platform/settings/api/controller/SettingsControllerIT.java [97:108]
void shouldFindSettingsFromToken() throws Exception {
mockMvc
.perform(get(BASE_URL + "/me").header(X_ACCESS_TOKEN.getHeaderName(), TOKEN_OFFICER))
.andExpectAll(
status().isOk(),
content().contentType(MediaType.APPLICATION_JSON),
jsonPath("$.settingsId", is(SETTINGS_ID_1.toString())),
jsonPath("$.channels[0].channel", is(Channel.EMAIL.getValue())),
jsonPath("$.channels[0].activated", is(true)),
jsonPath("$.channels[0].address", is(EMAIL_1)),
jsonPath("$.channels[0].deactivationReason").doesNotExist());
}