@Test
public void getSchema() throws Exception {

  road1.setSchemas(schemaVersionsMap);
  Optional<SchemaVersion> schemaV1 = client.getSchema("road1", 1);
  Optional<SchemaVersion> schemaV2 = client.getSchema("road1", 2);
  Optional<SchemaVersion> schemaV3 = client.getSchema("road1", 3);
  Optional<SchemaVersion> schemaV4 = client.getSchema("road1", 4);
  assertThat(schemaV1.get().getSchema(), is(schema1));
  assertThat(schemaV2.get().getSchema(), is(schema2));
  assertThat(schemaV3.get().getSchema(), is(schema3));
  assertThat(schemaV4.isPresent(), is(false));
}