@Test
public void createSuccessfully() throws Exception {

    Set<Right> rights = Collections.singleton(Right.CONVOCATION_DEPOSIT);
    given(convocationService.create(createDummyConvocation(), "mairie-test", "profile-one")).willReturn(createDummyConvocation());
    mockMvc.perform(post("/api/convocation")
            .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().isCreated());
}