PreSyncProjectCleanUp { @VisibleForTesting @NotNull ProjectCleanUpTask[] getCleanUpTasks() { return myCleanUpTasks; } PreSyncProjectCleanUp(); @VisibleForTesting  PreSyncProjectCleanUp(@NotNull ProjectCleanUpTask... cleanUpTasks); @NotNull static PreSyncProjectCleanUp getInstance(); void cleanUp(@NotNull Project project);  }
@Test public void mainConstructor() { PreSyncProjectCleanUp projectCleanUp = new PreSyncProjectCleanUp(); ProjectCleanUpTask[] tasks = projectCleanUp.getCleanUpTasks(); assertThat(tasks).hasLength(5); assertThat(tasks[0]).isInstanceOf(ProjectNotificationsCleanUpTask.class); assertThat(tasks[1]).isInstanceOf(ProjectPreferencesCleanUpTask.class); assertThat(tasks[2]).isInstanceOf(HttpProxySettingsCleanUpTask.class); assertThat(tasks[3]).isInstanceOf(GradleDistributionCleanUpTask.class); assertThat(tasks[4]).isInstanceOf(SyncIssueCleanupTask.class); }