@Test
public void getSchemas() throws Exception {

  Map<Integer, Schema> schemas = Collections.singletonMap(1, schema);
  when(paverService.getActiveSchemas(ROAD_NAME)).thenReturn(schemas);
  mockMvc
      .perform(get(CONTEXT_PATH + "/roads/road1/schemas"))
      .andExpect(status().isOk())
      .andExpect(content().contentType(APPLICATION_JSON_UTF8))
      .andExpect(content().string(objectMapper.writeValueAsString(schemas)));
}