private void assertMatch(ComposableList<? extends Object> e, ComposableList<? extends Object> s) { if (e.size() != s.size()) { throw new RuntimeException("Count Doesn't Match"); } for (int i = 0; i < e.size(); i++) { if (!e.get(i).equals(s.get(i))) { throw new RuntimeException("Item does not match at index: " + i); } } }