ServiceFactory { public TapglueService createTapglueService() { OkHttpClient client = ClientFactory.createClient(configuration, sessionToken, userUUID); Retrofit retrofit = buildRetrofit(client); return retrofit.create(TapglueService.class); } ServiceFactory(Configuration configuration); TapglueService createTapglueService(); PaginatedService createPaginatedService(); void setSessionToken(String token); void setUserUUID(String userUUID);  }
@Test public void serviceForIsNotNull() { TapglueService service = serviceFactory.createTapglueService(); assertThat(service, notNullValue()); }
@Test public void createServiceAsksForBaseUrl() { serviceFactory.createTapglueService(); verify(configuration).getBaseUrl(); }