@Test
public void testRemove() {

    Alert.ID id1 = this.manager.create(URI.create("urn:alert:test1"), "subtype",Alert.Level.INFO, "test1", "content").getId();
    Alert.ID id2 = this.manager.create(URI.create("urn:alert:test2"),"subtype", Alert.Level.CRITICAL, "test2", "content").getId();
    Alert alert2 = this.manager.remove(id2);
    Alert alert1 = this.manager.remove(id1);
    Iterator<? extends Alert> itr = this.manager.getAlerts(null);
    assertThat(itr.hasNext()).isFalse();
    assertThat(alert1.getId()).isEqualTo(id1);
    assertThat(alert2.getId()).isEqualTo(id2);
}