WroManagerFactoryDecorator extends AbstractDecorator<WroManagerFactory> implements WroManagerFactory, StandaloneContextAware { public void destroy() { managerInitializer.destroy(); } WroManagerFactoryDecorator(final WroManagerFactory managerFactory); WroManager create(); void onCachePeriodChanged(final long value); void onModelPeriodChanged(final long value); void destroy(); void initialize(final StandaloneContext standaloneContext);  }
@Test public void shouldInvokeDestroyOnDecoratedFactory() { victim.destroy(); verify(decorated).destroy(); }