}
double ans1 = 0, ans2 = 0;
// reuse
HSA hsaEngine2 = new HSA(1, 1, cost, new OrderedMatcherFactory(),
true);
TIntArrayList[] trace = new TIntArrayList[3];
ans1 = hsaEngine2.computeHSA(t, t, trace);
Assert.assertEquals("trace should be the same", trace[0], trace[1]);