@Test
public void testAlert() throws Exception {

	Incident incident = alertSender.sendTestAlert(abstractAlerterTest.createSubscription(elasticsearchAlerter), CheckResult.Status.ERROR);
	refresh();
	Collection<Incident> allIncidents = elasticsearchClient.getAll("/stagemonitor/alerts", 10, Incident.class);
	Assert.assertEquals(1, allIncidents.size());
	Assert.assertEquals(incident, allIncidents.iterator().next());
}