MwPageClient implements PageClient { @SuppressWarnings("unchecked") @NonNull @Override public Observable<Response<MwMobileViewPageLead>> lead(@NonNull WikiSite wiki, @Nullable CacheControl cacheControl, @Nullable String saveOfflineHeader, @Nullable String referrerUrl, @NonNull String title, int leadImageWidth) { return ServiceFactory.get(wiki).getLeadSection(cacheControl == null ? null : cacheControl.toString(), saveOfflineHeader, referrerUrl, title, leadImageWidth, wiki.languageCode()); }  @SuppressWarnings("unchecked") @NonNull @Override Observable<? extends PageSummary> summary(@NonNull WikiSite wiki, @NonNull String title, @Nullable String referrerUrl); @SuppressWarnings("unchecked") @NonNull @Override Observable<Response<MwMobileViewPageLead>> lead(@NonNull WikiSite wiki,
                                                                              @Nullable CacheControl cacheControl,
                                                                              @Nullable String saveOfflineHeader,
                                                                              @Nullable String referrerUrl,
                                                                              @NonNull String title,
                                                                              int leadImageWidth); @SuppressWarnings("unchecked") @NonNull @Override Observable<Response<MwMobileViewPageRemaining>> sections(@NonNull WikiSite wiki,
                                                                                       @Nullable CacheControl cacheControl,
                                                                                       @Nullable String saveOfflineHeader,
                                                                                       @NonNull String title); @SuppressWarnings("unchecked") @NonNull @Override Request sectionsUrl(@NonNull WikiSite wiki,
                                                  @Nullable CacheControl cacheControl,
                                                  @Nullable String saveOfflineHeader,
                                                  @NonNull String title);  }
@Test public void testLeadThumbnailWidth() { TestObserver<Response<PageLead>> observer = new TestObserver<>(); subject.lead(wikiSite(), null, null, null, "test", 10).subscribe(observer); observer.assertComplete().assertNoErrors() .assertValue(result -> result.raw().request().url().toString().contains("10")); }