@Test
public void getVirtualCsw() throws Exception {

    Service service = _serviceRepo.findOneByName("csw-endpoint1");
    Assert.assertNotNull(service);
    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockMvc.perform(get("/srv/api/csw/virtuals/" + service.getId())
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().isOk())
        .andExpect(jsonPath("$.name", is("csw-endpoint1")));
}