IntegrationEntity schedule = new Schedule("Test Schedule");
project.insertEntity(schedule, project.getRootFolder(EntityType.Schedule));
project.deleteItems(Arrays.asList(schedule));
Listener lst = new SingleEntityRevivedListener(schedule);
project.addProjectListener(lst);
project.reviveItems(Arrays.asList(schedule), new EntityRevivorCallback() {
@Override
public void warning(String warning) {
// ignore
}