public static IUser normalizeUserInfo( IUser user ) {
    user.setLogin( user.getLogin().trim() );
    user.setName( user.getName().trim() );
    return user;
  }
@Test
  public void normalizeUserInfo_WithSpaces() {
    IUser normalized = RepositoryCommonValidations.normalizeUserInfo( user( "  login \t\n ", "name" ) );
    assertEquals( "login", normalized.getLogin() );
    assertEquals( "login", normalized.getName() );
  }