### Question:
ExtensionsAwareProcessorDecorator extends ProcessorDecorator { public static ExtensionsAwareProcessorDecorator decorate(final ResourcePreProcessor preProcessor) { return new ExtensionsAwareProcessorDecorator(preProcessor); } private  ExtensionsAwareProcessorDecorator(final ResourcePreProcessor preProcessor); private  ExtensionsAwareProcessorDecorator(final ResourcePostProcessor postProcessor); ExtensionsAwareProcessorDecorator addExtension(final String extension); static ExtensionsAwareProcessorDecorator decorate(final ResourcePreProcessor preProcessor);  }### Answer:
@Test public void testMinimizeAwareDecorator1() { final ResourcePreProcessor decoratedProcessor = new JSMinProcessor(); final ResourcePreProcessor processor = ExtensionsAwareProcessorDecorator.decorate(decoratedProcessor); Assert.assertTrue(new ProcessorDecorator(processor).isMinimize()); }
@Test public void testMinimizeAwareDecorator2() { final ResourcePreProcessor decoratedProcessor = new CssUrlRewritingProcessor(); final ResourcePreProcessor processor = ExtensionsAwareProcessorDecorator.decorate(decoratedProcessor); Assert.assertFalse(new ProcessorDecorator(processor).isMinimize()); }