### Question:
SnapshotResolver { public ResourceSnapshot fromURI(URI endpoint) { return this.resolver.resolve(endpoint); } private  SnapshotResolver(ResourceSnapshotResolver resolver); URI toURI(ResourceSnapshot snapshot); ResourceSnapshot fromURI(URI endpoint); static Builder builder();  }### Answer:
@Test public void testFromURI(@Mocked ReadSession session, final @Mocked ResourceSnapshotResolver resolver, final @Mocked ResourceSnapshot snapshot) throws Exception { SnapshotResolver sut = buildResolver(session, resolver); sut.toURI(snapshot); new Verifications() {{ resolver.resolve(snapshot); }}; }