}
@Test
public void testMarkAsDeployDirty() {
RootFolder schedules = project.getRootFolder(EntityType.Schedule);
Schedule s1 = new Schedule("s1");
project.insertEntity(s1, schedules);
Folder folder = new Folder("Folder", EntityType.Schedule);
Schedule s2 = new Schedule("s2");
folder.addItem(s2);
project.insertEntity(folder, schedules);
EmailMessage email = new EmailMessage();
project.insertEntity(email, project.getRootFolder(EntityType.EmailMessage));
s1.setDeployDirty(false);
s2.setDeployDirty(false);
email.setDeployDirty(false);
folder.setDeployDirty(false);
project.markAsDeployDirty();
for (IntegrationEntity e : Arrays.asList(s1, s2, folder, email)) {
assertTrue(e.isDeployDirty());