@Test
public void size() {

    assertThat(rules.size()).isEqualTo(0);
    rules.register(new DummyRule());
    assertThat(rules.size()).isEqualTo(1);
    rules.unregister(new DummyRule());
    assertThat(rules.size()).isEqualTo(0);
}