### Question:
OpushConfigurationImpl implements OpushConfiguration { @Override public int defaultWindowSize() { return iniFile.getIntValue(DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE_DEFAULT); } @VisibleForTesting protected  OpushConfigurationImpl(IniFile opushConfigurationFile, String applicationName); @Override Charset getDefaultEncoding(); @Override String getDataDirectory(); @Override int transactionTimeoutInSeconds(); @Override ResourceBundle getResourceBundle(Locale locale); @Override String getGlobalDomain(); @Override String getActiveSyncServletUrl(); @Override boolean isRequestLoggerEnabled(); @Override String getObmSyncBaseUrl(String obmSyncHost); @Override String getObmSyncServicesUrl(String obmSyncHost); @Override int defaultWindowSize(); @Override Optional<Integer> maxWindowSize();  }### Answer:
@Test public void defaultWindowSizeShouldBeEqualToDefaultValueWhenNone() { expect(iniFile.getIntValue(DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE_DEFAULT)) .andReturn(DEFAULT_WINDOW_SIZE_DEFAULT); control.replay(); int defaultWindowSize = opushConfigurationImpl.defaultWindowSize(); control.verify(); assertThat(defaultWindowSize).isEqualTo(DEFAULT_WINDOW_SIZE_DEFAULT); }
@Test public void defaultWindowSizeShouldBeEqualToFileValueWhenGiven() { int expectedDefaultWindowSize = 10; expect(iniFile.getIntValue(DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE_DEFAULT)) .andReturn(expectedDefaultWindowSize); control.replay(); int defaultWindowSize = opushConfigurationImpl.defaultWindowSize(); control.verify(); assertThat(defaultWindowSize).isEqualTo(expectedDefaultWindowSize); }