public static List<IUser> convertFromProxyPentahoUsers( UserRoleSecurityInfo info, IRoleSupportSecurityManager rsm ) {
    List<ProxyPentahoUser> users = info.getUsers();
    if ( users == null || users.isEmpty() ) {
      return Collections.emptyList();
    }
    List<UserToRoleAssignment> assignments = info.getAssignments();
    List<IUser> userList = new ArrayList<IUser>( users.size() );
    for ( ProxyPentahoUser user : users ) {
      userList.add( convertFromProxyPentahoUser( user, assignments, rsm ) );
    }
    return userList;
  }
@Test
  public void convertFromProxyPentahoUsers_CopiesEachUser() throws Exception {
    UserRoleSecurityInfo info = new UserRoleSecurityInfo();
    info.setUsers( Arrays.asList( pentahoUser( "user1" ), pentahoUser( "user2" ) ) );

    IRoleSupportSecurityManager manager = mockSecurityManager( false );

    List<IUser> users = convertFromProxyPentahoUsers( info, manager );
    assertNotNull( users );
    assertEquals( 2, users.size() );
    assertEquals( "user1", users.get( 0 ).getName() );
    assertEquals( "user2", users.get( 1 ).getName() );
  }