@Test
public void testForceGarbageCollectionWhenDeviceOffline() {

  when(myDevice.isOnline()).thenReturn(false);
  Client client = mock(Client.class);
  ClientData clientData = mock(ClientData.class);
  when(client.getClientData()).thenReturn(clientData);
  when(myDevice.getClients()).thenReturn(new Client[]{client});
  myProxy.forceGarbageCollection(ForceGarbageCollectionRequest.newBuilder().setSession(SESSION1).build(), mock(StreamObserver.class));
  verify(client, never()).executeGarbageCollector();
}