code: public static UserStub getStubWithRandomParams(UserTypeVal userType) {
          // Java coerces the return type as a Tuple2 of Objects -- but it's declared as a Tuple2 of Doubles!
          // Oh the joys of type erasure.
          Tuple2<Double, Double> tuple = SocialNetworkUtilities.getRandomGeographicalLocation();
          return new UserStub(userType, new Tuple2<>((Double) tuple._1(), (Double) tuple._2()),
                  SocialNetworkUtilities.getRandomIsSecret());
      }
docs: Get random stub matching this user type
  @param userType User type
  @return Random stub