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