WindowScope implements Scope { @Override public void registerDestructionCallback(String name, Runnable runnable) { log.warn("Destruction callback for bean {} might not be executed", name); }  @SuppressWarnings("unchecked") @Override Object get(String name, ObjectFactory<?> objectFactory); @Override Object remove(String name); @Override void registerDestructionCallback(String name, Runnable runnable); @Override Object resolveContextualObject(String name); @Override String getConversationId();  }
@Test public void registerDestructionCallback() { this.windowScope.registerDestructionCallback("foo", () -> { }); }