public class MaxAcceptableFailureRateTest {
@Test
public void violateMoreExceptionsThanSuccesses() throws InterruptedException {
InvocationRecord ir = new InvocationRecord( "testA" );
ir.addPolicy( new MaxAcceptableFailureRate( .01 ) );
assertEquals( "", ir.reportPolicyViolations() );
ir.recordSuccess();
assertEquals( "", ir.reportPolicyViolations() );
ir.recordException( "EXCEPTION" );
assertEquals( "", ir.reportPolicyViolations() );