// resource has initial UNKNOWN ResourceAvailability and no Availability records. simulate an avail report
// coming from the agent and setting the initial avail to UP.
AvailabilityReport availReport = new AvailabilityReport(AGENT_NAME);
availReport.addAvailability(new Datum(resource.getId(), AvailabilityType.UP, System.currentTimeMillis()));
AvailabilityManagerLocal availManager = LookupUtil.getAvailabilityManager();
availManager.mergeAvailabilityReport(availReport);
// wait for our JMS messages to process and see if we get any alerts
Thread.sleep(3000);
PageList<Alert> alerts = getAlerts(resource.getId());