Mockito's mocks are not thread-safe. The dependencies object is used both on the test thread (to set it up) and in the CS handler thread. This can't work with a mock. Bug: 195626111 Test: ConnectivityServiceTest Change-Id: Ia989dd71c3133513a90bc1d1957419fb1b74c300