### Question:
FirebaseDynamicLinksImpl extends FirebaseDynamicLinks { public static void verifyDomainUriPrefix(Bundle builderParameters) { Uri longLink = builderParameters.getParcelable(Builder.KEY_DYNAMIC_LINK); if (TextUtils.isEmpty(builderParameters.getString(Builder.KEY_DOMAIN_URI_PREFIX)) && longLink == null) { throw new IllegalArgumentException( "FDL domain is missing. Set with setDomainUriPrefix() or setDynamicLinkDomain()."); } } FirebaseDynamicLinksImpl(FirebaseApp firebaseApp, @Nullable AnalyticsConnector analytics); @VisibleForTesting  FirebaseDynamicLinksImpl(
      GoogleApi<NoOptions> googleApi, @Nullable AnalyticsConnector analytics); PendingDynamicLinkData getPendingDynamicLinkData(@NonNull Intent intent); @Override Task<PendingDynamicLinkData> getDynamicLink(@NonNull final Intent intent); @Override Task<PendingDynamicLinkData> getDynamicLink(@NonNull final Uri dynamicLinkUri); @Override DynamicLink.Builder createDynamicLink(); static Uri createDynamicLink(Bundle builderParameters); Task<ShortDynamicLink> createShortDynamicLink(final Bundle builderParameters); static void verifyDomainUriPrefix(Bundle builderParameters); static final String KEY_SCION_DATA; static final String EXTRA_DYNAMIC_LINK_DATA; }### Answer:
@Test public void testverifyDomainUriPrefix_LongLink() { FirebaseDynamicLinksImpl.verifyDomainUriPrefix(createDynamicLinkBundle()); }
@Test public void testverifyDomainUriPrefix_WithDomain() { FirebaseDynamicLinksImpl.verifyDomainUriPrefix(createDynamicLinkBundle()); }
@Test public void testverifyDomainUriPrefix_WithNoDomain() { try { FirebaseDynamicLinksImpl.verifyDomainUriPrefix(new Bundle()); fail("Expected IllegalArgumentException with no domain set."); } catch (IllegalArgumentException expected) { } }