@Test
public void updateRoad() throws Exception {

  when(paverService.getRoad(NAME)).thenReturn(road);
  String patchJson = mapper.writeValueAsString(singletonList(PatchOperation.replace("/enabled", Boolean.TRUE)));
  mockMvc
      .perform(patch(CONTEXT_PATH + "/roads/road1").contentType("application/json-patch+json").content(patchJson))
      .andExpect(status().isOk())
      .andExpect(content().contentType(APPLICATION_JSON_UTF8))
      .andExpect(content().json("{\"success\":true}"));
  verify(paverService).applyPatch(NAME, singletonList(PatchOperation.replace("/enabled", Boolean.TRUE)));
}