### Question:
DynamicLinksClient extends GmsClient<IDynamicLinksService> { void getDynamicLink(IDynamicLinksCallbacks.Stub callback, String dynamicLink) { try { getService().getDynamicLink(callback, dynamicLink); } 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 testGetDynamicLink_NotConnected() { try { client.getDynamicLink(mockCallbacks, DYNAMIC_LINK); fail("Expected IllegalStateException"); } catch (IllegalStateException expected) { } }