@Test public void shouldRetireLocationTag() throws Exception { LocationTag locationTag = service.getLocationTag(2); Assert.assertFalse(locationTag.isRetired()); MockHttpServletRequest req = request(RequestMethod.DELETE, getURI() + "/" + locationTag.getUuid()); req.addParameter("!purge", ""); req.addParameter("reason", "random reason"); handle(req); LocationTag retiredLocationTag = service.getLocationTag(2); Assert.assertTrue(retiredLocationTag.isRetired()); Assert.assertEquals("random reason", retiredLocationTag.getRetireReason()); }