body common control
{
  bundlesequence => { "test" };
}

bundle agent test
{
  classes:
    # Testing function call
    "exists" expression => fileexists($(this.promise_filename));
    "exists_trailing" expression => fileexists($(this.promise_filename), );

  methods:
    # Testing bundle call
    "check" usebundle => check("a", "b", "c");
    "check_trailing" usebundle => check("d", "e", "f", );

  reports:
    exists.exists_trailing.abc.def::
      "$(this.promise_filename) Pass: Both trailing and non-trailing functions/bundles match";

    !(exists.exists_trailing.abc.def)::
      "$(this.promise_filename) Fail: Class evaluation failing between trailing and non-trailing functions/bundles";
}

bundle agent check(a, b, c)
{
  classes:
    "$(a)$(b)$(c)"
      scope => "namespace";
}
