@Test
public void duplicatedRoutingRulesAreIgnored() {

    Cell cell = new Cell("cell1", "1");
    String cellsSpec = "cell1=(app1.*);cell1=(app2.*)";
    Map<Cell, String> routingRules = CellInfoUtil.extractCellRoutingFromCellSpecification(
            Collections.singletonList(cell), cellsSpec
    );
    assertThat(routingRules).isNotNull();
    assertThat(routingRules).hasSize(1);
    // second value got ignored
    assertThat(routingRules.get(cell)).isEqualTo("(app1.*)");
}