### Question:
ProcessingConfig { public double getFailThreshold() { return failThreshold; } ProcessingConfig(Properties properties); boolean getCommitInitialOffset(); long getCommitTimeThreshold(); long getCommitSizeThreshold(); OffsetResetStrategy getOffsetResetStrategy(); double getFailThreshold(); int getFailSampleSize(); long getFailPauseTime(); long getMaxPollInterval(); Properties getProperties(); String getGroupId(); @Override String toString(); static final String COMMIT_INITIAL_OFFSET_PROPERTY; static final String COMMIT_INITIAL_OFFSET_DEFAULT; static final String COMMIT_TIME_THRESHOLD_PROPERTY; static final String COMMIT_TIME_THRESHOLD_DEFAULT; static final String COMMIT_SIZE_THRESHOLD_PROPERTY; static final String COMMIT_SIZE_THRESHOLD_DEFAULT; static final String FAIL_THRESHOLD_PROPERTY; static final String FAIL_THRESHOLD_DEFAULT; static final String FAIL_SAMPLE_SIZE_PROPERTY; static final String FAIL_SAMPLE_SIZE_DEFAULT; static final String FAIL_PAUSE_TIME_PROPERTY; static final String FAIL_PAUSE_TIME_DEFAULT; }### Answer:
@Test public void constructor_pauseThresholdEqualsZero() throws IOException { properties.setProperty(ProcessingConfig.FAIL_THRESHOLD_PROPERTY, "0"); config = new ProcessingConfig(properties); assertThat(config.getFailThreshold(), is(0.0)); }
@Test public void constructor_pauseThresholdEqualsOne() throws IOException { properties.setProperty(ProcessingConfig.FAIL_THRESHOLD_PROPERTY, "1"); config = new ProcessingConfig(properties); assertThat(config.getFailThreshold(), is(1.0)); }