@Test
public void getStatus() throws Exception {

    Long statusValueCount = statusValueRepo.count();
    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockHttpSession = loginAsAdmin();
    this.mockMvc.perform(get("/srv/api/status")
        .accept(MediaType.parseMediaType("application/json"))
        .session(this.mockHttpSession))
        .andExpect(status().isOk())
        .andExpect(content().contentType(API_JSON_EXPECTED_ENCODING))
        .andExpect(jsonPath("$", hasSize(statusValueCount.intValue())));
}