class GlobalPropertyResource {

    @DELETE
    @Timed
    @UnitOfWork
    @Path("{id}")
    @ApiOperation(value = "Soft delete")
    public Response delete(@PathParam("id") final int id) {
        service.delete(id);
        return Response.ok().build();
    }

}

class GlobalPropertyResourceTest {

    private static IGlobalPropertyService service;
    private static GlobalPropertyDomain globalProperty;
    private static GlobalPropertyResource resource;

    @Test
    public void testDeleteById() {

        doNothing().when(service).delete(anyInt());

        final Response response = resource.delete(globalProperty.getId());
        Assert.assertEquals(response.getStatus(), 200);
    }

}