TransformingObservables { @NonNull public static Observable<Person> zipPersons() { Observable<String> names = Observable.just("John", "Jack"); Observable<Integer> ages = Observable.just(28, 17); return Observable.zip(names, ages, Person::new); }  @NonNull static Observable<Integer> sequential(); @NonNull static Observable<Integer> parallel(); @NonNull static Observable<Person> zipPersons();  }
@Test public void testZip() throws Exception { assertNotNull(TransformingObservables.zipPersons()); }