BaseResource { protected static Response created() { return Response.status(Response.Status.CREATED).build(); }    }
@Test public void testCreated() { final Response created = BaseResource.created(); assertEquals(Response.Status.CREATED.getStatusCode(), created.getStatus()); }