@Test
public void creationMissingFields() throws Exception {

    Set<Right> rights = new HashSet<>();
    rights.add(Right.CONVOCATION_DEPOSIT);
    ObjectMapper objectMapper = new ObjectMapper();
    Map<String, String> body = new HashMap<>();
    body.put("subject", "convocation test two");
    body.put("comment", "comment convocation test two");
    given(convocationService.create(createDummyConvocation(), "mairie-test", "profile-one")).willReturn(createDummyConvocation());
    mockMvc.perform(post("/api/convocation")
            .contentType(MediaType.APPLICATION_JSON_UTF8)
            .content(objectMapper.writeValueAsString(body))
            .requestAttr("STELA-Current-Profile-Rights", rights)
            .requestAttr("STELA-Current-Local-Authority-UUID", "mairie-test")
            .requestAttr("STELA-Current-Profile-UUID", "profile-one"))
            .andExpect(status().isBadRequest());
}