StrategyConfigItems implements StrategyConfig { Map<String, String> getItems() { return items; }  @Override String getConfigItem(String key); @Override int getNumberOfConfigItems(); @Override Set<String> getConfigItemKeys(); void setItems(Map<String, String> items); @Override String toString();  }
@Test public void testAddingAndFetchingConfigItems() { final StrategyConfigItems strategyConfig = new StrategyConfigItems(); strategyConfig.getItems().put(BUY_PRICE_CONFIG_ITEM_KEY, BUY_PRICE_CONFIG_ITEM_VALUE); strategyConfig.getItems().put(AMOUNT_TO_BUY_CONFIG_ITEM_KEY, AMOUNT_TO_BUY_CONFIG_ITEM_VALUE); assertEquals(2, strategyConfig.getItems().size()); assertEquals( BUY_PRICE_CONFIG_ITEM_VALUE, strategyConfig.getItems().get(BUY_PRICE_CONFIG_ITEM_KEY)); assertEquals( AMOUNT_TO_BUY_CONFIG_ITEM_VALUE, strategyConfig.getItems().get(AMOUNT_TO_BUY_CONFIG_ITEM_KEY)); }