diff --git a/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java b/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java index 8f96754626..d08b528164 100644 --- a/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java +++ b/wsmaster/che-core-api-user/src/test/java/org/eclipse/che/api/user/server/ProfileServiceTest.java @@ -83,7 +83,8 @@ public class ProfileServiceTest { .when(linksInjector.injectLinks(any(), any())) .thenAnswer(inv -> inv.getArguments()[0]); - when(profileManager.getById(SUBJECT.getUserId())) + lenient() + .when(profileManager.getById(SUBJECT.getUserId())) .thenReturn(new ProfileImpl(SUBJECT.getUserId())); }