@Test
void shouldExpandTokenOfSingleAction() {

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