### Question:
DynamicLink { @NonNull public Uri getUri() { return FirebaseDynamicLinksImpl.createDynamicLink(builderParameters); } DynamicLink(Bundle builderParameters); @NonNull Uri getUri();  }### Answer:
@Test public void testGetUri() { Bundle parameters = createDynamicLinkBundle(); DynamicLink dynamicLink = new DynamicLink(parameters); assertEquals(FirebaseDynamicLinksImpl.createDynamicLink(parameters), dynamicLink.getUri()); }
@Test public void testBuilder_SetDomainUriPrefix() throws Exception { DynamicLink.Builder builder = FirebaseDynamicLinks.getInstance().createDynamicLink(); builder.setDomainUriPrefix(CUSTOM_DOMAIN_URI_PREFIX); DynamicLink dynamicLink = builder.buildDynamicLink(); assertEquals(CUSTOM_DOMAIN_URI_PREFIX, dynamicLink.getUri().toString()); builder = FirebaseDynamicLinks.getInstance().createDynamicLink(); builder.setDomainUriPrefix(DOMAIN_WITH_SCHEME); dynamicLink = builder.buildDynamicLink(); assertEquals(DOMAIN_WITH_SCHEME, dynamicLink.getUri().toString()); }
@Test public void testBuilder_BuildDynamicLink() { Uri longLink = Uri.parse(LONG_LINK); builder.setLongLink(longLink); DynamicLink dynamicLink = builder.buildDynamicLink(); assertEquals(longLink, dynamicLink.getUri()); }