public class RecurringFailureLimitTest {
@Test
public void reportPolicyViolations() {
InvocationRecord ir = new InvocationRecord( "testA" );
ir.addPolicy( new RecurringFailureLimit( 2 ) );
assertEquals( "", ir.reportPolicyViolations() );
ir.recordSuccess();
ir.recordException( "Shit happens!" );
ir.recordException( "Shit happens!" );
assertEquals( "", ir.reportPolicyViolations() );