@Test
public void deleteExisting() throws Exception {

  store.put("doc1", jsonNode1);
  mockMvc
      .perform(delete("/doc1"))
      .andExpect(status().isOk())
      .andExpect(content().contentType(APPLICATION_JSON_UTF8))
      .andExpect(jsonPath("$.message", is("Document 'doc1' was deleted.")));
  assertThat(store.containsKey("doc1"), is(false));
}