@Test
public void testGetAlerts() throws InterruptedException {

    this.manager.create(URI.create("urn:alert:test1"), "subtype",Alert.Level.INFO, "test1", "content");
    Thread.sleep(25);
    this.manager.create(URI.create("urn:alert:test2"), "subtype",Alert.Level.CRITICAL, "test2", "content");
    Iterator<? extends Alert> itr = this.manager.getAlerts(null);
    assertThat(itr.hasNext()).isTrue();
    assertThat(itr.next().getLevel()).isEqualTo(Level.INFO);
    assertThat(itr.hasNext()).isTrue();
    assertThat(itr.next().getLevel()).isEqualTo(Level.CRITICAL);
    assertThat(itr.hasNext()).isFalse();
}