/** * assert that collection has one element * * @param collection the collection to check * @throws WebApplicationException with status code 422 (Unprocessable Entity) */ public static void assertSingleElement(final Collection<?> collection) { RESTAssert.assertSingleElement(collection, RESTAssert.DEFAULT_STATUS_CODE); }