### Question:
DisposableConnectionStatusEmitter implements ObservableOnSubscribe<ConnectionStatus>,
    Disposable, LostApiClient.ConnectionCallbacks { @Override public void dispose() { disposed = true; client.unregisterConnectionCallbacks(this); client.disconnect(); } DisposableConnectionStatusEmitter(LostApiClient client); @Override void subscribe(final ObservableEmitter<ConnectionStatus> emitter); @Override void dispose(); @Override boolean isDisposed(); @Override void onConnected(); @Override void onConnectionSuspended();  }### Answer:
@Test public void dispose_shouldUnregisterCallbacks() throws Exception { emitter.dispose(); verify(client).unregisterConnectionCallbacks(emitter); }
@Test public void dispose_disconnect() throws Exception { emitter.dispose(); verify(client).disconnect(); }