@Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    } else if (!(o instanceof EventTypeFilter<?, ?>)) {
      return false;
    }
    EventTypeFilter<?, ?> other = (EventTypeFilter<?, ?>) o;
    return Objects.equals(listener, other.listener)
        && Objects.equals(filter, other.filter);
  }
@Test
  public void equals() {
    assertThat(filter.equals(filter)).isTrue();
  }