TokenService extends FirebaseMessagingService { @Override public void onNewToken(String token) { AppCenterLog.debug(LOG_TAG, "Received push token update via service callback."); Push.getInstance().onTokenRefresh(token); }  @Override void onNewToken(String token);  }
@Test public void onTokenRefresh() { TokenService service = new TokenService(); service.onNewToken(null); verify(mPush).onTokenRefresh(null); String testToken = "TEST"; service.onNewToken(testToken); verify(mPush).onTokenRefresh(eq(testToken)); }