### Question:
BaseAdsServiceClientFactoryHelper implements AdsServiceClientFactoryHelper<C, S, D> { @Override public D createServiceDescriptor(Class<?> interfaceClass, String version) { return adsServiceDescriptorFactory.create(interfaceClass, version); } BaseAdsServiceClientFactoryHelper(
      AdsServiceClientFactoryInterface<C, S, D> adsServiceClientFactory,
      AdsServiceDescriptorFactoryInterface<D> adsServiceDescriptorFactory,
      SoapClientHandlerInterface<?> soapClientHandler); @Override C createAdsServiceClient(D adsServiceDescriptor, S adsSession); @Override D createServiceDescriptor(Class<?> interfaceClass, String version); @Override void checkServiceClientPreconditions(S adsSession, Class<?> interfaceClass);  }### Answer:
@Test public void testCreateServiceDescriptor() { Class<MockSoapClientInterface> interfaceClass = MockSoapClientInterface.class; when(adsServiceDescriptorFactory.create(interfaceClass, VERSION)) .thenReturn(adsServiceDescriptor); AdsServiceDescriptor testAdsServiceDescriptor = abstractAdsServiceClientFactoryHelper.createServiceDescriptor(interfaceClass, VERSION); assertSame(adsServiceDescriptor, testAdsServiceDescriptor); }