@Test public void canDelete() {

  when(groupDAO.getGroupById(0xdeadbeef)).thenReturn(Optional.of(group));
  Response response = resource.deleteGroup(user, new LongParam(Long.toString(0xdeadbeef)));
  verify(groupDAO).deleteGroup(group);
  assertThat(response.getStatus()).isEqualTo(204);
}