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);
List<Strategy> result = helper.getDefaultStrategies(Strategy.class, applicationContext);
Assert.assertNotNull("No result", result);
Assert.assertEquals("Invalid amount of strategies", 2, result.size());
Assert.assertTrue("Result not a Strategy implementation", result.get(0) != null);