@Test
public void getTag() throws Exception {

    MetadataCategory category = _categoriesRepo.findOne(1);
    Assert.assertNotNull(category);
    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockMvc.perform(get("/srv/api/tags/" + category.getId())
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().isOk())
        .andExpect(jsonPath("$.name", is(category.getName())));
}