@Test
void shouldExpandTokenOfTwoActions() {

    IssuesSizeTokenMacro macro = new IssuesSizeTokenMacro();
    Run<?, ?> run = createBuildWithActions(
            createAction("first", "first name", 1),
            createAction("second", "second name", 2));
    assertThat(expandMacro(macro, run)).isEqualTo("3");
    macro.setTool("first");
    assertThat(expandMacro(macro, run)).isEqualTo("1");
    
    macro.setTool("second");
    assertThat(expandMacro(macro, run)).isEqualTo("2");
    
    macro.setTool("other");
    assertThat(expandMacro(macro, run)).isEqualTo("0");
}