test_class.declarator: eventFactory =
              TestEventFactory.newInstance(EventWhiteListTest.class)
test_class.modifier: private static final
test_class.original_string: private static final TestEventFactory eventFactory =
              TestEventFactory.newInstance(EventWhiteListTest.class);
test_class.type: TestEventFactory
test_class.var_name: eventFactory
test_class.declarator: whiteList
test_class.modifier: private
test_class.original_string: private EventWhiteList whiteList;
test_class.type: EventWhiteList
test_class.var_name: whiteList
test_class.file: server/src/test/java/io/spine/server/entity/EventWhiteListTest.java
test_class.identifier: EventWhiteListTest
test_case.body: @Test
      @DisplayName("allow eventFactory of white list type")
      void acceptAllowed() {
          EventMessage event = EntProjectCreated.getDefaultInstance();
          Optional<? extends Message> result = whiteList.filter(event);
          assertTrue(result.isPresent());
          assertEquals(event, result.get());
      }
test_case.class_method_signature: EventWhiteListTest.acceptAllowed()
test_case.full_signature: @Test @DisplayName("allow eventFactory of white list type") void acceptAllowed()
test_case.identifier: acceptAllowed
test_case.invocations: getDefaultInstance filter assertTrue isPresent assertEquals get
test_case.modifiers: @Test @DisplayName("allow eventFactory of white list type")
test_case.parameters: ()
test_case.return: void
test_case.signature: void acceptAllowed()
focal_class.declarator: allowedEvents
focal_class.modifier: private final
focal_class.original_string: private final ImmutableSet<EventClass> allowedEvents;
focal_class.type: ImmutableSet<EventClass>
focal_class.var_name: allowedEvents
focal_class.file: server/src/main/java/io/spine/server/entity/EventWhiteList.java
focal_class.identifier: EventWhiteList
focal_class.interfaces: implements EventFilter
focal_class.class_method_signature: EventWhiteList.EventWhiteList(ImmutableSet<EventClass> allowedEvents)
focal_class.full_signature: private  EventWhiteList(ImmutableSet<EventClass> allowedEvents)
focal_class.identifier: EventWhiteList
focal_class.modifiers: private
focal_class.parameters: (ImmutableSet<EventClass> allowedEvents)
focal_class.signature:  EventWhiteList(ImmutableSet<EventClass> allowedEvents)
focal_class.class_method_signature: EventWhiteList.allowEvents(Class<? extends EventMessage>... eventClasses)
focal_class.full_signature: @SuppressWarnings("WeakerAccess") // Public API of the framework. @SafeVarargs public static EventWhiteList allowEvents(Class<? extends EventMessage>... eventClasses)
focal_class.identifier: allowEvents
focal_class.modifiers: @SuppressWarnings("WeakerAccess") // Public API of the framework. @SafeVarargs public static
focal_class.parameters: (Class<? extends EventMessage>... eventClasses)
focal_class.return: EventWhiteList
focal_class.signature: EventWhiteList allowEvents(Class<? extends EventMessage>... eventClasses)
focal_class.class_method_signature: EventWhiteList.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 allowedEvents.contains(type)
                 ? Optional.of(event)
                 : Optional.empty();
      }
focal_method.class_method_signature: EventWhiteList.filter(EventMessage event)
focal_method.full_signature: @Override public Optional<? extends EventMessage> filter(EventMessage event)
focal_method.identifier: filter
focal_method.invocations: of contains of empty
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)