test_class.declarator: eventFactory =
              TestEventFactory.newInstance(EventBlackListTest.class)
test_class.modifier: private static final
test_class.original_string: private static final TestEventFactory eventFactory =
              TestEventFactory.newInstance(EventBlackListTest.class);
test_class.type: TestEventFactory
test_class.var_name: eventFactory
test_class.declarator: blackList
test_class.modifier: private
test_class.original_string: private EventBlackList blackList;
test_class.type: EventBlackList
test_class.var_name: blackList
test_class.file: server/src/test/java/io/spine/server/entity/EventBlackListTest.java
test_class.identifier: EventBlackListTest
test_case.body: @Test
      @DisplayName("allow events of type not from the list")
      void allowArbitrary() {
          EventMessage event = EntProjectCreated.getDefaultInstance();
          Optional<? extends EventMessage> filtered = blackList.filter(event);
          assertTrue(filtered.isPresent());
          assertEquals(event, filtered.get());
      }
test_case.class_method_signature: EventBlackListTest.allowArbitrary()
test_case.full_signature: @Test @DisplayName("allow events of type not from the list") void allowArbitrary()
test_case.identifier: allowArbitrary
test_case.invocations: getDefaultInstance filter assertTrue isPresent assertEquals get
test_case.modifiers: @Test @DisplayName("allow events of type not from the list")
test_case.parameters: ()
test_case.return: void
test_case.signature: void allowArbitrary()
focal_class.declarator: forbiddenEvents
focal_class.modifier: private final
focal_class.original_string: private final ImmutableSet<EventClass> forbiddenEvents;
focal_class.type: ImmutableSet<EventClass>
focal_class.var_name: forbiddenEvents
focal_class.file: server/src/main/java/io/spine/server/entity/EventBlackList.java
focal_class.identifier: EventBlackList
focal_class.interfaces: implements EventFilter
focal_class.class_method_signature: EventBlackList.EventBlackList(ImmutableSet<EventClass> forbiddenEvents)
focal_class.full_signature: private  EventBlackList(ImmutableSet<EventClass> forbiddenEvents)
focal_class.identifier: EventBlackList
focal_class.modifiers: private
focal_class.parameters: (ImmutableSet<EventClass> forbiddenEvents)
focal_class.signature:  EventBlackList(ImmutableSet<EventClass> forbiddenEvents)
focal_class.class_method_signature: EventBlackList.discardEvents(Class<? extends EventMessage>... eventClasses)
focal_class.full_signature: @SafeVarargs public static EventBlackList discardEvents(Class<? extends EventMessage>... eventClasses)
focal_class.identifier: discardEvents
focal_class.modifiers: @SafeVarargs public static
focal_class.parameters: (Class<? extends EventMessage>... eventClasses)
focal_class.return: EventBlackList
focal_class.signature: EventBlackList discardEvents(Class<? extends EventMessage>... eventClasses)
focal_class.class_method_signature: EventBlackList.filter(EventMessage event)
focal_class.full_signature: @Override public Optional<? extends EventMessage> filter(EventMessage event)
focal_class.identifier: filter
focal_class.modifiers: @Override public
focal_class.parameters: (EventMessage event)
focal_class.return: Optional<? extends EventMessage>
focal_class.signature: Optional<? extends EventMessage> filter(EventMessage event)
focal_method.body: @Override
      public Optional<? extends EventMessage> filter(EventMessage event) {
          EventClass type = EventClass.of(event);
          return forbiddenEvents.contains(type)
                 ? Optional.empty()
                 : Optional.of(event);
      }
focal_method.class_method_signature: EventBlackList.filter(EventMessage event)
focal_method.full_signature: @Override public Optional<? extends EventMessage> filter(EventMessage event)
focal_method.identifier: filter
focal_method.invocations: of contains empty of
focal_method.modifiers: @Override public
focal_method.parameters: (EventMessage event)
focal_method.return: Optional<? extends EventMessage>
focal_method.signature: Optional<? extends EventMessage> filter(EventMessage event)