test_class.declarator: USER_ID = "user"
test_class.modifier: private final
test_class.original_string: private final String USER_ID = "user";
test_class.type: String
test_class.var_name: USER_ID
test_class.declarator: userServiceMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UserService userServiceMock;
test_class.type: UserService
test_class.var_name: userServiceMock
test_class.declarator: retrieverMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AuthenticationInfoRetriever retrieverMock;
test_class.type: AuthenticationInfoRetriever
test_class.var_name: retrieverMock
test_class.declarator: userMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private User userMock;
test_class.type: User
test_class.var_name: userMock
test_class.declarator: otherUserMock
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private User otherUserMock;
test_class.type: User
test_class.var_name: otherUserMock
test_class.declarator: userAuthService
test_class.modifier: private
test_class.original_string: private DefaultUserAuthService userAuthService;
test_class.type: DefaultUserAuthService
test_class.var_name: userAuthService
test_class.file: backend/project-board/src/test/java/de/adesso/projectboard/base/user/service/DefaultUserAuthServiceTest.java
test_class.identifier: DefaultUserAuthServiceTest
test_case.body: @Test
      public void getAuthenticatedUserReturnsUserWithIdOfAuthenticatedUser() {
          // given
          given(retrieverMock.getUserId()).willReturn(USER_ID);
          given(userServiceMock.getUserById(USER_ID)).willReturn(userMock);
  
          // when
          var actualUser = userAuthService.getAuthenticatedUser();
  
          // then
          assertThat(actualUser).isEqualTo(userMock);
      }
test_case.class_method_signature: DefaultUserAuthServiceTest.getAuthenticatedUserReturnsUserWithIdOfAuthenticatedUser()
test_case.full_signature: @Test public void getAuthenticatedUserReturnsUserWithIdOfAuthenticatedUser()
test_case.identifier: getAuthenticatedUserReturnsUserWithIdOfAuthenticatedUser
test_case.invocations: willReturn given getUserId willReturn given getUserById getAuthenticatedUser isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAuthenticatedUserReturnsUserWithIdOfAuthenticatedUser()
focal_class.declarator: userService
focal_class.modifier: private final
focal_class.original_string: private final UserService userService;
focal_class.type: UserService
focal_class.var_name: userService
focal_class.declarator: retriever
focal_class.modifier: private final
focal_class.original_string: private final AuthenticationInfoRetriever retriever;
focal_class.type: AuthenticationInfoRetriever
focal_class.var_name: retriever
focal_class.file: backend/project-board/src/main/java/de/adesso/projectboard/base/user/service/DefaultUserAuthService.java
focal_class.identifier: DefaultUserAuthService
focal_class.interfaces: implements UserAuthService
focal_class.class_method_signature: DefaultUserAuthService.DefaultUserAuthService(UserService userService, AuthenticationInfoRetriever retriever)
focal_class.full_signature: public  DefaultUserAuthService(UserService userService, AuthenticationInfoRetriever retriever)
focal_class.identifier: DefaultUserAuthService
focal_class.modifiers: public
focal_class.parameters: (UserService userService, AuthenticationInfoRetriever retriever)
focal_class.signature:  DefaultUserAuthService(UserService userService, AuthenticationInfoRetriever retriever)
focal_class.class_method_signature: DefaultUserAuthService.getAuthenticatedUser()
focal_class.full_signature: @Override public User getAuthenticatedUser()
focal_class.identifier: getAuthenticatedUser
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: User
focal_class.signature: User getAuthenticatedUser()
focal_class.class_method_signature: DefaultUserAuthService.getAuthenticatedUserId()
focal_class.full_signature: @Override public String getAuthenticatedUserId()
focal_class.identifier: getAuthenticatedUserId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAuthenticatedUserId()
focal_class.class_method_signature: DefaultUserAuthService.authenticatedUserIsAdmin()
focal_class.full_signature: @Override public boolean authenticatedUserIsAdmin()
focal_class.identifier: authenticatedUserIsAdmin
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean authenticatedUserIsAdmin()
focal_class.class_method_signature: DefaultUserAuthService.userIsEffectivelyAManager(User user)
focal_class.full_signature: @Override public boolean userIsEffectivelyAManager(User user)
focal_class.identifier: userIsEffectivelyAManager
focal_class.modifiers: @Override public
focal_class.parameters: (User user)
focal_class.return: boolean
focal_class.signature: boolean userIsEffectivelyAManager(User user)
focal_method.body: @Override
      public User getAuthenticatedUser() {
          return userService.getUserById(retriever.getUserId());
      }
focal_method.class_method_signature: DefaultUserAuthService.getAuthenticatedUser()
focal_method.full_signature: @Override public User getAuthenticatedUser()
focal_method.identifier: getAuthenticatedUser
focal_method.invocations: getUserById getUserId
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: User
focal_method.signature: User getAuthenticatedUser()