@Test
public void testManageReservationCancelFailByBusinessException() {

    // Prepare post request
    MockHttpServletRequestBuilder postRequest = MockMvcRequestBuilders.post(
            "/reservations/123/cancel");
    // Set mock behavior for service and helper method
    Mockito.doThrow(new BusinessException("")).when(reserveService).cancel(
            "123");
    when(manageReservationHelper.findDetail("123")).thenReturn(
            new ReservationDetailOutput());
    try {
        ResultActions results = mockMvc.perform(postRequest);
        results.andExpect(status().isOk());
        results.andExpect(view().name("managereservation/cancelConfirm"));
        results.andExpect(model().attribute("output", notNullValue()));
        // Exception message existence check
        results.andExpect(model().attribute("resultMessages",
                notNullValue()));
        return;
    } catch (Exception e) {
        e.printStackTrace();
    }
    fail(); // FAIL when exception is thrown
}