@Test
public void testGet() 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("config.menu.changes.enabled", is(true)))
            .andExpect(jsonPath("config.menu.externalLinks.enabled", is(true)))
            .andExpect(jsonPath("config.menu.externalLinks.items[0].title", is("title1")))
            .andExpect(jsonPath("config.menu.externalLinks.items[0].link", is("link1")))
            .andExpect(jsonPath("config.menu.externalLinks.items[0].enabled", is(true)))                
            .andExpect(jsonPath("config.menu.externalLinks.items[1].title", is("title2")))
            .andExpect(jsonPath("config.menu.externalLinks.items[1].link", is("link2")))
            .andExpect(jsonPath("config.menu.externalLinks.items[1].enabled", is(true)));
}