AirshipHmsIntegration { public static void processNewToken(@NonNull Context context, @NonNull String token) { HmsTokenCache.shared().set(context, token); PushProviderBridge.requestRegistrationUpdate(context); }  @NonNull static Future<Void> processMessage(@NonNull Context context, @NonNull RemoteMessage message); static void processMessageSync(@NonNull Context context, @NonNull RemoteMessage message); static void processNewToken(@NonNull Context context, @NonNull String token);  }
@Test public void testProcessNewToken() { Context context = ApplicationProvider.getApplicationContext(); HmsTokenCache cache = HmsTokenCache.shared(); assertNull(cache.get(context)); AirshipHmsIntegration.processNewToken(context, "token"); assertEquals("token", cache.get(context)); }