@Test
public void post_DesitationAlreadyExists() throws Exception {

  doThrow(new AlreadyExistsException("foo")).when(service).createHiveDestination(NAME, hiveDestinationModel);
  mockMvc
      .perform(post(HIVE_DESTINATION_ENDPOINT).contentType(APPLICATION_JSON_UTF8).content(DESTINATION_JSON))
      .andExpect(status().isConflict())
      .andExpect(content().contentType(APPLICATION_JSON_UTF8))
      .andExpect(jsonPath("$.timestamp", isA(Long.TYPE)))
      .andExpect(jsonPath("$.success", is(false)))
      .andExpect(jsonPath("$.message", is("foo")));
}