public class TimeLimitBetweenInvocationsTest {
@Test
public void violateLimitNotInvokedSinceBoot() throws InterruptedException {
InvocationRecord ir = new InvocationRecord( "testA" );
ir.addPolicy( new TimeLimitBetweenInvocations( 1 ) );
Thread.sleep( 10 );
String report = ir.reportPolicyViolations();
assertTrue( report.indexOf( "since boot" ) > -1 );
}