@Test
public void post() throws Exception {
final MockHttpServletRequestBuilder request =
MockMvcRequestBuilders.post(ApplicationController.API_URL)
.contentType(MediaType.APPLICATION_JSON_VALUE)
.content("{\n" +
"\t\"data\": {\n" +
"\t\t\"tenantId\": \"" + ITUtil.UUID_104 + "\",\n" +
"\t\t\"name\": \"" + ITUtil.APPLICATION_103 + "\",\n" +
"\t\t\"description\": \"" + ITUtil.DESCRIPTION_103 + "\"\n" +
"\t}\n" +
"}");
mockMvc.perform(request)
.andDo(MockMvcResultHandlers.print())
.andExpect(status().isCreated())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))
.andExpect(jsonPath("$.status").value(StatusType.SUCCESSFUL.name()))
.andExpect(jsonPath("$.data.tenantId").value(ITUtil.UUID_104.toString()))
.andExpect(jsonPath("$.data.name").value(ITUtil.APPLICATION_103))
.andExpect(jsonPath("$.data.description").value(ITUtil.DESCRIPTION_103));
}