private List<PlatformUser> givenUsers() {
    List<PlatformUser> users = new ArrayList<PlatformUser>();
    PlatformUser user1 = new PlatformUser();
    user1.setUserId(USERID_1);
    PlatformUser user2 = new PlatformUser();
    user2.setUserId(USERID_2);
    users.add(user1);
    users.add(user2);

    return users;
  }
 private PlatformUser givenUser() {
   Organization org = new Organization();
   org.setOrganizationId(ORGANIZATION_ID);
   PlatformUser user = new PlatformUser();
   user.setUserId(USER_ID);
   user.setOrganization(org);
   return user;
 }
 private PlatformUser givenUser(String locale) {
   Organization org = new Organization();
   org.setOrganizationId(ORGANIZATION_ID);
   org.setName(ORGANIZATION_NAME);
   PlatformUser user = new PlatformUser();
   user.setUserId(USER_ID);
   user.setOrganization(org);
   user.setLocale(locale);
   return user;
 }
 @Before
 public void setup() throws Exception {
   dsMock = mock(DataService.class);
   Organization org = new Organization();
   org.setOrganizationId(ORGANIZATIONID);
   PlatformUser user = new PlatformUser();
   user.setUserId(USERID_1);
   user.setLocale("en");
   user.setOrganization(org);
   when(dsMock.getCurrentUser()).thenReturn(user);
   marketplace = new Marketplace();
   marketplace.setKey(1000l);
   doReturn(marketplace).when(dsMock).getReferenceByBusinessKey(any(Marketplace.class));
 }
  private PlatformUser givenUser() {
    PlatformUser user = new PlatformUser();
    user.setUserId(USERID_1);

    return user;
  }