@@ -0,0 +1,1191 @@
+/**%0D%0A * Copyright@2011 wro4j%0D%0A */%0D%0Apackage ro.isdc.wro.http.handler.factory;%0D%0A%0D%0Aimport static junit.framework.Assert.assertEquals;%0D%0A%0D%0Aimport java.util.Collections;%0D%0Aimport java.util.HashMap;%0D%0Aimport java.util.Map;%0D%0Aimport java.util.Properties;%0D%0A%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.Test;%0D%0Aimport org.mockito.Mockito;%0D%0Aimport org.mockito.MockitoAnnotations;%0D%0A%0D%0Aimport ro.isdc.wro.WroRuntimeException;%0D%0Aimport ro.isdc.wro.http.handler.RequestHandler;%0D%0A%0D%0A%0D%0A/**%0D%0A * @author Alex Objelean%0D%0A */%0D%0Apublic class TestConfigurableRequestHandlerFactory %7B%0D%0Aprivate ConfigurableRequestHandlerFactory victim;%0D%0A  %0D%0A  @Before%0D%0A  public void setUp() %7B%0D%0A    MockitoAnnotations.initMocks(this);%0D%0A    victim = new ConfigurableRequestHandlerFactory();%0D%0A  %7D%0D%0A  %0D%0A  @Test%0D%0A  public void shouldReturnEmptyListByDefault() %7B%0D%0A    assertEquals(Collections.EMPTY_LIST, victim.getConfiguredStrategies());%0D%0A  %7D%0D%0A  %0D%0A  @Test(expected = WroRuntimeException.class)%0D%0A  public void testInvalidRequestHandlerSet() %7B%0D%0A    final Properties props = new Properties();%0D%0A    props.setProperty(ConfigurableRequestHandlerFactory.KEY, %22invalid%22);%0D%0A    victim.setProperties(props);%0D%0A    victim.getConfiguredStrategies();%0D%0A  %7D%0D%0A%7D%0D%0A

create test class for ConfigurableRequestHandlerFactory