@Test
public void deleteRoad() throws Exception {

  when(roadAdminClient.getRoad(road.getName())).thenReturn(Optional.of(road));
  MessageStatus m = new MessageStatus();
  m.setLastUpdated(100);
  m.setNumberOfMessages(0);
  road.setMessageStatus(m);
  road.setEnabledTimeStamp(99);
  underTest.deleteRoad(road.getName());
  ArgumentCaptor<PatchSet> patchCaptor = ArgumentCaptor.forClass(PatchSet.class);
  verify(roadAdminClient).updateRoad(patchCaptor.capture());
  PatchSet patch = patchCaptor.getValue();
  assertThat(patch.getDocumentId(), is(road.getName()));
  assertThat(patch.getOperations().size(), is(1));
  assertThat(patch.getOperations().get(0).getOperation(), is(Operation.ADD));
  assertThat(patch.getOperations().get(0).getPath(), is("/deleted"));
  assertThat(patch.getOperations().get(0).getValue(), is(true));
}