Why does this not compile, oh, what to do?
import static org.junit.Assert.assertThat; import static org.junit.matchers.JUnitMatchers.hasItems; ArrayList<
Try
assertThat(actual, hasItems(expected.toArray(new Integer[0])));
to satisfy the matcher signature. No Eclipse around, so this might not work.