### Question:
DynamicLinksClient extends GmsClient<IDynamicLinksService> { void createShortDynamicLink(IDynamicLinksCallbacks.Stub callback, Bundle parameters) { try { getService().createShortDynamicLink(callback, parameters); } catch (RemoteException e) { } } DynamicLinksClient(
      Context context,
      Looper looper,
      ClientSettings clientSettings,
      GoogleApiClient.ConnectionCallbacks connectedListener,
      GoogleApiClient.OnConnectionFailedListener connectionFailedListener); @Override int getMinApkVersion(); static final String ACTION_START_SERVICE; static final String SERVICE_DESCRIPTOR; }### Answer:
@Test public void testCreateShortDynamicLink_NotConnected() { try { client.createShortDynamicLink(mockCallbacks, parameters); fail("Expected IllegalStateException"); } catch (IllegalStateException expected) { } }