@Test public void shouldInvalidateOnDelete() throws Exception { resource.removeRepresentations(); verify(httpSession).invalidate(); }