setHttpContext(parseJson("{ \"name\": \"name\", \"value\": \"test\" }"));
Result result = controller.update(42L);
assertThat(result).isNotNull();
RestResult res = toEntity(result, RestResult.class);
assertThat(res).isNotNull();
assertThat(res.getStatus()).isEqualTo(Status.NOT_FOUND);
assertThat(res.getKey()).isEqualTo(42L);
}