@Test
public void testResolve() {

    TestAlert mgrAlert = new TestAlert(this.manager);
    TestAlert srcAlert = new TestAlert(this.source);
    SourceAlertID mgrId = new SourceAlertID(mgrAlert.getId(), this.manager);
    SourceAlertID srcId = new SourceAlertID(srcAlert.getId(), this.source);
    String mgrIdStr = mgrId.toString();
    String srcIdStr = srcId.toString();
    this.provider.addAlertSource(this.source);
    this.provider.addAlertManager(this.manager);
    when(this.source.resolve(any(TestID.class))).thenReturn(srcAlert.getId());
    when(this.manager.resolve(any(TestID.class))).thenReturn(mgrAlert.getId());
    when(this.source.resolve(any(String.class))).thenReturn(srcAlert.getId());
    when(this.manager.resolve(any(String.class))).thenReturn(mgrAlert.getId());
    Alert.ID mgrObjResolved = this.provider.resolve(mgrId);
    Alert.ID srcObjResolved = this.provider.resolve(srcId);
    Alert.ID mgrStrResolved = this.provider.resolve(mgrIdStr);
    Alert.ID srcStrResolved = this.provider.resolve(srcIdStr);
    assertThat(mgrObjResolved).isInstanceOf(SourceAlertID.class).isEqualTo(mgrId).isEqualTo(mgrStrResolved);
    assertThat(srcObjResolved).isInstanceOf(SourceAlertID.class).isEqualTo(srcId).isEqualTo(srcStrResolved);
}