in src/it/java/com/epam/digital/data/platform/user/service/KeycloakServiceTest.java [132:146]
void shouldGetCorrectListOfRoles() throws IOException {
// given
customizeGetAllRoles(mockKeycloakServer, 200, "json/all-roles.json");
// when
Set<KeycloakRole> actual = keycloakService.getAllRoles();
var expected = objectMapper.readValue(
TestUtils.getContent("json/all-roles.json").getBytes(StandardCharsets.UTF_8),
new TypeReference<Set<KeycloakRole>>() {
}
);
assertThat(actual).isEqualTo(expected);
}