@Test
public void updateSuccessfully() throws Exception {

    Set<Right> rights = Collections.singleton(Right.CONVOCATION_DEPOSIT);
    Convocation convocation = createDummyConvocation();
    given(convocationService.update("convocation-uuid-one", "mairie-test", convocation)).willReturn(convocation);
    mockMvc.perform(put("/api/convocation/convocation-uuid-one")
            .contentType(MediaType.APPLICATION_JSON_UTF8)
            .content(createDummyConvocationAsJsonString())
            .requestAttr("STELA-Current-Profile-Rights", rights)
            .requestAttr("STELA-Current-Local-Authority-UUID", "mairie-test")
            .requestAttr("STELA-Current-Profile-UUID", "profile-one"))
            .andExpect(status().isOk());
}