void returnErrorWhenTemplateNotFound()

in src/it/java/com/epam/digital/data/platform/excerpt/api/controller/ExcerptControllerIT.java [119:129]


  void returnErrorWhenTemplateNotFound() throws Exception {
    var requestJson = readClassPathResource("/json/request.json");

    mockMvc.perform(
            post("/excerpts")
                .header(ACCESS_TOKEN.getHeaderName(), OFFICER_TOKEN)
                .content(requestJson)
                .contentType(MediaType.APPLICATION_JSON))
        .andExpect(status().is4xxClientError())
        .andExpect(jsonPath("$.statusDetails").value("Template not found: template"));
  }