@Test
public void isCasEnabled() throws Exception {

    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockHttpSession = loginAsAdmin();
    // This service returns a boolean, not encapsulated in json, can't use jsonPath
    MvcResult result = this.mockMvc.perform(get("/srv/api/site/info/isCasEnabled")
        .session(this.mockHttpSession)
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().isOk())
        .andExpect(content().contentType(API_JSON_EXPECTED_ENCODING))
        .andReturn();
    Assert.assertTrue(result.getResponse().getContentAsString().equals("false"));
}