@Test
public void testReloadFailure() {

    AtomicReference<String> rules = new AtomicReference<>("cell1=(app1.*);cell2=(app2.*)");
    RoutingRuleSelector selector = new RoutingRuleSelector(cellInfoResolver, rules::get);
    assertThat(selector.select("app1", cell -> true)).contains(CELL_1);
    rules.set(null);
    assertThat(selector.select("app1", cell -> true)).contains(CELL_1);
    rules.set("cell1=(app2.*);cell2=(app1.*)");
    assertThat(selector.select("app1", cell -> true)).contains(CELL_2);
}