@Test
  public void requiresObjectInputFilterApi() {
    Throwable thrown = catchThrowable(() -> {
      new ReflectiveFacadeGlobalSerialFilter(null, "pattern", emptySet());
    });

    assertThat(thrown)
        .isInstanceOf(NullPointerException.class)
        .hasMessage("ObjectInputFilterApi is required");
  }
The ObjectInputFilter API throws IllegalStateException nested within InvocationTargetException
if a non-null filter already exists.
geode-serialization/src/test/java/org/apache/geode/internal/serialization/filter/ReflectiveFacadeGlobalSerialFilterTest.java