CompositeResourceManager implements ResourceManager { @Override public void registerResourceChangeListener(ResourceChangeListener listener) { throw UndertowMessages.MESSAGES.resourceChangeListenerNotSupported(); } CompositeResourceManager(ResourceManager... resourceManagers); @Override void close(); @Override Resource getResource(String path); @Override boolean isResourceChangeListenerSupported(); @Override void registerResourceChangeListener(ResourceChangeListener listener); @Override void removeResourceChangeListener(ResourceChangeListener listener);  }
@Test public void testRegisterResourceChangeListener() { Assertions.assertThrows(IllegalArgumentException.class, () -> new CompositeResourceManager().registerResourceChangeListener(null) ); }