### Question:
Options { @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) public Options setDefaultReportingIntervalMillis(int value) { if (maxReportingIntervalMillis != DEFAULT_REPORTING_INTERVAL_MILLIS) { return this; } try { return new Options.OptionsBuilder(this).withMaxReportingIntervalMillis(value).build(); } catch (MalformedURLException e) { throw new IllegalArgumentException("Unexpected error when building a new set of" + "options from a valid set of existing options. collectorUrl=" + this.collectorUrl); } } private  Options(
            String accessToken,
            String serviceVersion,
            String hostname,
            URL collectorUrl,
            long maxReportingIntervalMillis,
            int maxBufferedSpans,
            int verbosity,
            boolean disableReportingLoop,
            boolean resetClient,
            Map<String, Object> tags,
            boolean useClockCorrection,
            ScopeManager scopeManager,
            long deadlineMillis,
            Map<Format<?>, Propagator> propagators,
            String metricsUrl,
            boolean disableMetricsReporting,
            CollectorClient collectorClient,
            String grpcCollectorTarget,
            boolean grpcRoundRobin,
            OkHttpDns okhttpDns,
            boolean disableMetaEventLogging
    ); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) Options setDefaultReportingIntervalMillis(int value); @SuppressWarnings("unused") Options disableResetClient(); @SuppressWarnings("WeakerAccess")
    static final int DEFAULT_MAX_BUFFERED_SPANS; @SuppressWarnings("WeakerAccess")
    static final int VERBOSITY_DEBUG; @SuppressWarnings("WeakerAccess")
    static final int VERBOSITY_INFO; @SuppressWarnings("WeakerAccess")
    static final int VERBOSITY_ERRORS_ONLY; @SuppressWarnings("WeakerAccess")
    static final int VERBOSITY_FIRST_ERROR_ONLY; @SuppressWarnings("WeakerAccess")
    static final int VERBOSITY_NONE; }### Answer:
@Test public void testSetDefaultReportingIntervalMillis_alreadySet() throws Exception { Options oldOptions = createFullyPopulatedOptions(); Options newOptions = oldOptions.setDefaultReportingIntervalMillis(111); assertSame(oldOptions, newOptions); assertEquals(MAX_REPORTING_INTERVAL_MILLIS, newOptions.maxReportingIntervalMillis); }
@Test public void testSetDefaultReportingIntervalMillis_notSet() throws Exception { Options oldOptions = new Options.OptionsBuilder().build(); Options newOptions = oldOptions.setDefaultReportingIntervalMillis(111); assertNotSame(oldOptions, newOptions); assertEquals(111, newOptions.maxReportingIntervalMillis); }