@Test
public void getInformation() throws Exception {

    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockHttpSession = loginAsAdmin();
    this.mockMvc.perform(get("/srv/api/site/info")
        .accept(MediaType.parseMediaType("application/json"))
        .session(this.mockHttpSession))
        .andExpect(status().isOk())
        .andExpect(content().contentType(API_JSON_EXPECTED_ENCODING))
        .andExpect(jsonPath("$.catalogue['data.dataDir']", is(not(isEmptyOrNullString()))))
        .andExpect(jsonPath("$.index['index.path']", is(not(isEmptyOrNullString()))))
        .andExpect(jsonPath("$.main['java.version']", is(not(isEmptyOrNullString()))))
        .andExpect(jsonPath("$.database['db.url']", is(not(isEmptyOrNullString()))));
}