// Path: src/test/java/ut/com/monitorjbl/plugins/TestUtils.java
// public static ApplicationUser mockApplicationUser(String name) {
//   ApplicationUser user = mock(ApplicationUser.class);
//   when(user.getSlug()).thenReturn(name);
//   return user;
// }


import com.atlassian.bitbucket.user.ApplicationUser;
import com.atlassian.bitbucket.user.UserService;
import com.atlassian.bitbucket.util.Page;
import com.atlassian.bitbucket.util.PageRequest;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.util.List;
import static com.google.common.collect.Lists.newArrayList;
import static com.monitorjbl.plugins.TestUtils.mockApplicationUser;
import static java.util.Collections.emptyList;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
package com.monitorjbl.plugins;




public class UserUtilsTest {

  @Mock
  private UserService userService;
  @InjectMocks
  UserUtils sut;

  @Before
  @SuppressWarnings("unchecked")
  public void setup() throws Exception {
    MockitoAnnotations.initMocks(this);
    ApplicationUser userA = mockApplicationUser("userA");
// Path: src/test/java/ut/com/monitorjbl/plugins/TestUtils.java
// public static ApplicationUser mockApplicationUser(String name) {
//   ApplicationUser user = mock(ApplicationUser.class);
//   when(user.getSlug()).thenReturn(name);
//   return user;
// }


// Path: src/test/java/ut/com/monitorjbl/plugins/UserUtilsTest.java
import com.atlassian.bitbucket.user.ApplicationUser;
import com.atlassian.bitbucket.user.UserService;
import com.atlassian.bitbucket.util.Page;
import com.atlassian.bitbucket.util.PageRequest;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.util.List;
import static com.google.common.collect.Lists.newArrayList;
import static com.monitorjbl.plugins.TestUtils.mockApplicationUser;
import static java.util.Collections.emptyList;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

package com.monitorjbl.plugins;




public class UserUtilsTest {

  @Mock
  private UserService userService;
  @InjectMocks
  UserUtils sut;

  @Before
  @SuppressWarnings("unchecked")
  public void setup() throws Exception {
    MockitoAnnotations.initMocks(this);
    ApplicationUser userA = mockApplicationUser("userA");
    ApplicationUser userB = mockApplicationUser("userB");