@Test
public void testGetRemovedPatternAndCircuitHashAfterUpdate(TestContext context){

    context.assertNotNull(rules);
    context.assertNotNull(rulesAfterUpdate);
    context.assertEquals(3, rules.size());
    context.assertEquals(4, rulesAfterUpdate.size());
    List<PatternAndCircuitHash> patternAndCircuitHashes = mapping.updateRulePatternToCircuitMapping(rules);
    context.assertEquals(0, patternAndCircuitHashes.size());
    List<PatternAndCircuitHash> patternAndCircuitHashesAfterUpdate = mapping.updateRulePatternToCircuitMapping(rulesAfterUpdate);
    context.assertEquals(1, patternAndCircuitHashesAfterUpdate.size());
    PatternAndCircuitHash removedPatternAndCircuitHash = patternAndCircuitHashesAfterUpdate.get(0);
    context.assertEquals("/playground/js/(.*)", removedPatternAndCircuitHash.getPattern().pattern());
}