public Schema find(String name, String namespace) {
    Schema.Type type = PRIMITIVES.get(name);
    if (type != null) {
      return Schema.create(type);
    }

    String fullName = fullName(name, namespace);
    Schema schema = getNamedSchema(fullName);
    if (schema == null) {
      schema = getNamedSchema(name);
    }

    return schema != null ? schema : SchemaResolver.unresolvedSchema(fullName);
  }
@Test
  public void validateSchemaRetrievalFailure() {
    Schema unknown = Schema.createFixed("unknown", null, null, 0);

    Schema unresolved = fooBarBaz.find("unknown", null);
    assertTrue(SchemaResolver.isUnresolvedSchema(unresolved));
    assertEquals(unknown.getFullName(), SchemaResolver.getUnresolvedSchemaName(unresolved));
  }