/** * Tests that we can get the threshold value correctly. */ @Test public void testGettingThreshold() { final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold); assertEquals("Wrong value of threshold", Long.valueOf(threshold), Long.valueOf(circuit.getThreshold())); }