@Test
public void testGetDefaultStrategyMoreThanOne() throws Exception {

	Properties strategies = new Properties();
	strategies.put(Strategy.class.getName(),
			StrategyImpl.class.getName() + "," + ContextAwareStrategyImpl.class.getName());
	DefaultStrategiesHelper helper = new DefaultStrategiesHelper(strategies);
	StaticApplicationContext applicationContext = new StaticApplicationContext();
	applicationContext.registerSingleton("strategy1", StrategyImpl.class);
	applicationContext.registerSingleton("strategy2", ContextAwareStrategyImpl.class);
	try {
		helper.getDefaultStrategy(Strategy.class, applicationContext);
		Assert.fail("Expected BeanInitializationException");
	} catch (BeanInitializationException ex) {
		// expected
	}
}