@Test
public void testResolve() throws Exception {

    property.set(toJson(DESCRIPTOR_1_1));
    ArchaiusSystemDisruptionBudgetResolver resolver = new ArchaiusSystemDisruptionBudgetResolver(repository);
    resolver.resolve().subscribe(testSubscriber);
    // Should return the initial value.
    assertThat(testSubscriber.takeNext()).isEqualTo(toDisruptionBudget(DESCRIPTOR_1_1));
    // Now refresh
    property.set(toJson(DESCRIPTOR_2_2));
    assertThat(testSubscriber.takeNext()).isEqualTo(toDisruptionBudget(DESCRIPTOR_2_2));
}