@Test
public void hasHooksTest() {

    assertThat(element.hasHooks(), is(false));
    List<ResultMatch> before = new ArrayList<>();
    before.add(new ResultMatch());
    element.setBefore(before);
    assertThat(element.hasHooks(), is(true));
}