userRepository = mock(UserRepository.class);
when(userRepository.findByUuid(eq(USER.getUuid().toString()))).thenReturn(USER);
when(userRepository.findBySession(eq(AUTH_TOKEN))).thenReturn(USER);
applicationConfig = mock(ApplicationConfig.class);
when(applicationConfig.getSessionDateOffsetInMinutes()).thenReturn(30);
authorizationService = new SessionTokenAuthorizationService(userRepository);
}