@Test
public void updateABookmark() throws Exception {

    Bookmark input = getSimpleBookmark();
    String location = addBookmark(input);
    Resource<Bookmark> output = getBookmark(location);
    String result = mvc.perform(
            put(output.getId().getHref())
                    .contentType(MediaType.APPLICATION_JSON_UTF8)
                    .accept("application/hal+json;charset=UTF-8", "application/json;charset=UTF-8")
                    .content(objectMapper.writeValueAsString(output.getContent().withUrl("http://kulinariweb.de")))
                    .with(csrf())
    ).andDo(print()).andExpect(status().isOk())
            .andReturn().getResponse().getContentAsString();
    output = objectMapper.readValue(result, new TypeReference<Resource<Bookmark>>() {
    });
    assertEquals("http://kulinariweb.de", output.getContent().getUrl());
}