NoopCodeLimiter implements CodeLimiter { @Override public int instructionCount() { return instructionCount; }  @Override void check(); @Override int instructionCount();  }
@Test public void testCodeLimiter() throws CodeException { Context ctx = execute("a{@|htmlattr}c", "\"b\""); assertEquals(ctx.getCodeLimiter().instructionCount(), 5); }