.principal(() -> "euregjug")
)
.andExpect(status().isCreated())
.andExpect(jsonPath("$.id", equalTo(4712)))
.andExpect(jsonPath("$.name", equalTo(eventEntity.getName())))
<BUG>.andExpect(jsonPath("$.post").doesNotExist())
.andDo(document("api/events/create",</BUG>
preprocessRequest(prettyPrint()),
preprocessResponse(prettyPrint())
));

.principal(() -> "euregjug")
)
.andExpect(status().isCreated())
.andExpect(jsonPath("$.id", equalTo(4712)))
.andExpect(jsonPath("$.name", equalTo(eventEntity.getName())))
.andExpect(jsonPath("$.post").doesNotExist())
.andExpect(jsonPath("$.status", equalTo("open")))
.andDo(document("api/events/create",
preprocessRequest(prettyPrint()),
preprocessResponse(prettyPrint())
));
