// Wait a while - see https://bugzilla.redhat.com/show_bug.cgi?id=830299
Thread.sleep(60*1000);
// Send a avail down/up sequence -> alert definition should fire
long now = System.currentTimeMillis();
Availability a = new Availability(_platformId,now-2000,"DOWN");
given()
.contentType(ContentType.JSON)
.pathParam("id", _platformId)
.body(a)
.expect()
.statusCode(204)
.log().ifError()
.when()
.put("/resource/{id}/availability");
a = new Availability(_platformId,now-1000,"UP");
given()
.contentType(ContentType.JSON)
.pathParam("id", _platformId)
.body(a)
.expect()