@Test(expected = WebApplicationException.class) public void testEnsureExistsThrows() { BaseResource.ensureExists(null); }
protected static <T> T ensureExists(T value) { if (value == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return value; }
BaseResource { protected static <T> T ensureExists(T value) { if (value == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return value; } }
BaseResource { protected static <T> T ensureExists(T value) { if (value == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return value; }  }
BaseResource { protected static <T> T ensureExists(T value) { if (value == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return value; }   }
BaseResource { protected static <T> T ensureExists(T value) { if (value == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return value; }    }