private void givenUserFound() { Mockito.when(mockUserService.loginUser(expectedUser, expectedPass)) .thenReturn(new AccessToken(new User())); }
private void givenUserNotFound() { Mockito.when(mockUserService.loginUser(expectedUser, expectedPass)).thenReturn(null); }