CircuitBreakerInformation { boolean increaseErrorLevel() { actualErrorLevel++; return actualErrorLevel >= maxErrorCount; } CircuitBreakerInformation(final String identifier, final ParameterList parameters); String toString();  }
@Test public void increaseErrorLevel() throws Exception { int originalValue = underTest.getActualErrorLevel(); underTest.increaseErrorLevel(); int newValue = underTest.getActualErrorLevel(); Assert.assertTrue(originalValue + 1 == newValue); }