ReportTooltipUiIndicator { @NonNull public static ReportTooltipUiIndicator backupReminder(int days) { return new ReportTooltipUiIndicator(State.BackupReminder, null, days); } private  ReportTooltipUiIndicator(@NonNull State state, @Nullable SyncErrorType errorType,
                                     @Nullable Integer daysSinceLastBackup); @NonNull static ReportTooltipUiIndicator syncError(@NonNull SyncErrorType errorType); @NonNull static ReportTooltipUiIndicator generateInfo(); @NonNull static ReportTooltipUiIndicator backupReminder(int days); @NonNull static ReportTooltipUiIndicator importInfo(); @NonNull static ReportTooltipUiIndicator none(); State getState(); Optional<SyncErrorType> getErrorType(); Optional<Integer> getDaysSinceBackup(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void backupReminder() { final ReportTooltipUiIndicator indicator = ReportTooltipUiIndicator.backupReminder(DAYS); assertEquals(ReportTooltipUiIndicator.backupReminder(DAYS), indicator); assertEquals(State.BackupReminder, indicator.getState()); assertEquals(DAYS, (int)indicator.getDaysSinceBackup().get()); }