@Test
public void getAllVirtualCsw() throws Exception {

    List<Service> services = _serviceRepo.findAll();
    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockMvc.perform(get("/srv/api/csw/virtuals")
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().isOk())
        .andExpect(jsonPath("$", hasSize(services.size())));
}