    @SuppressWarnings("unchecked")
    @Test
    public void test_deleteMovie_post_success() throws Exception {

        final UUID movieId = UUID.randomUUID();

        when(movieService.isAuthorizedOnMovie(TEST_AUTHENTICATED_USER, movieId)).thenReturn(true);

        mockMvc.perform(post("/movie/delete")
            .with(csrf())
            .with(user(TEST_AUTHENTICATED_USER))
            .param("id", movieId.toString())
            .param("returnUrl", "/home"))
            .andExpect(status().is3xxRedirection())
            .andExpect(redirectedUrl("/home"))
            .andExpect(flash().attribute("notifications", hasItems()));

        verify(movieService).deleteMovie(movieId);
        verify(messageSource).getMessage(eq("message.deleteMovieSuccess"), eq(null), any(Locale.class));
    }