@Test
public void errorsCatalog() throws Exception {

    final URIBuilder uriBuilder = createGetUrl(ROOT_URI);
    // performs GET: /api/errors-catalog
    mockMvc.perform(get(toUrl(uriBuilder))
            .accept(MediaType.APPLICATION_JSON)
            .with(SecurityMockMvcRequestPostProcessors.authentication(mockAuthentication("ADMIN"))))
            .andExpect(status().isOk())
            .andExpect(jsonPath("[0].name", is("OHF")))
            .andExpect(jsonPath("[0].codes[0].code", is("E100")))
            .andExpect(jsonPath("[0].codes[0].desc", is("unspecified error")));
}