in src/it/java/com/epam/digital/data/platform/user/service/KeycloakServiceTest.java [182:197]
void shouldMakeAttemptForEachBatchAndEachRowWhen5xx() throws IOException {
// given
customizeImportUsers(mockKeycloakServer, 500, "json/partial-import-response.json");
var fileObject = getFileObject("json/users.csv");
when(fileService.getFile(fileObject.getId())).thenReturn(fileObject);
var contentStr = new String(fileObject.getContent(), StandardCharsets.UTF_8);
when(vaultService.decrypt(contentStr)).thenReturn(contentStr);
// when
userPublishingService.publish(fileObject.getId());
// then
mockKeycloakServer.verify(8,
postRequestedFor(urlEqualTo("/auth/admin/realms/some-realm/partialImport")));
}