@Test
public void put_Ok_enabled_customInterval() throws Exception {

  String destinationJson = "{\"enabled\" : true, \"landingInterval\" : \"PT30M\"}";
  mockMvc
      .perform(put(HIVE_DESTINATION_ENDPOINT).contentType(APPLICATION_JSON_UTF8).content(destinationJson))
      .andExpect(status().isOk())
      .andExpect(content().contentType(APPLICATION_JSON_UTF8))
      .andExpect(jsonPath("$.timestamp", isA(Long.TYPE)))
      .andExpect(jsonPath("$.success", is(true)))
      .andExpect(jsonPath("$.message", is("Request to update Hive destination for \"road1\" received.")));
  hiveDestinationModel.setEnabled(true);
  hiveDestinationModel.setLandingInterval("PT30M");
  verify(service).updateHiveDestination(NAME, hiveDestinationModel);
}