### Question:
UriByteSource extends BeanByteSource implements ImmutableBean, Serializable { public static UriByteSource of(URI uri) { return new UriByteSource(uri); } private  UriByteSource(URI uri); static UriByteSource of(URI uri); static UriByteSource of(URL url); @Override MetaBean metaBean(); @Override Optional<String> getFileName(); URI getUri(); @Override InputStream openStream(); @Override ArrayByteSource load(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_of_Url() throws MalformedURLException { URI uri = new File("pom.xml").toURI(); UriByteSource test = UriByteSource.of(uri.toURL()); assertThat(test.size()).isGreaterThan(100); assertThat(test.sizeIfKnown().isPresent()).isFalse(); assertThat(test.read()[0]).isEqualTo((byte) '<'); }
@Test public void testSerialize() { UriByteSource test = UriByteSource.of(new File("pom.xml").toURI()); String json = JodaBeanSer.PRETTY.jsonWriter().write(test); UriByteSource roundTrip = JodaBeanSer.PRETTY.jsonReader().read(json, UriByteSource.class); assertThat(roundTrip).isEqualTo(test); }