@Override
    public Optional<JavaClass> tryResolve(String typeName) {
        String typeFile = typeName.replace(".", "/") + ".class";

        Optional<URI> uri = tryGetUriOf(typeFile);

        return uri.isPresent() ? classUriImporter.tryImport(uri.get()) : Optional.empty();
    }
@Test
    public void is_resilient_if_URI_cant_be_located() {
        Optional<JavaClass> result = resolver.tryResolve("sooo.Wrong");

        assertThat(result).isEmpty();
        verifyNoMoreInteractions(uriImporter);
    }