IIssuesManager.defaultInstance.setIssuesList(IssuesListTestHelper.createInMemoryDatastoreIssuesList(null, null));
FeatureIssue createFeatureIssue = IssuesListTestHelper.createFeatureIssue("issue"); //$NON-NLS-1$
IssuesManager.defaultInstance.getIssuesList().add(createFeatureIssue);
createFeatureIssue.setPriority(Priority.TRIVIAL);
final AtomicBoolean saved=new AtomicBoolean(false);
IssuesManager.defaultInstance.getIssuesList().addListener(new IIssuesListListener(){
public void notifyChange( IssuesListEvent event ) {
if(event.getType()==IssuesListEventType.SAVE)
saved.set(true);
}