}
private void compare(List<ASTEntry> initial, ArrayList<ASTEntry> expected) {
StringBuffer buf1 = new StringBuffer();
for (int i = 0; i < initial.size(); i++) {
ASTEntry o1 = initial.get(i);
buf1.append(o1.getAdditionalInfo(AstEntryScopeAnalysisConstants.AST_ENTRY_FOUND_LOCATION, 0));
}
StringBuffer buf2 = new StringBuffer();
for (int i = 0; i < expected.size(); i++) {
ASTEntry o1 = expected.get(i);
buf2.append(o1.getAdditionalInfo(AstEntryScopeAnalysisConstants.AST_ENTRY_FOUND_LOCATION, 0));
}
assertEquals(buf1.toString(), buf2.toString());
}