OtherConfigImpl implements OtherConfig { Map<String, String> getItems() { return items; } OtherConfigImpl(); @Override String getItem(String name); void setItems(Map<String, String> items); @Override String toString();  }
@Test public void testAddingAndFetchingOtherConfigItems() { final OtherConfigImpl otherConfig = new OtherConfigImpl(); otherConfig.getItems().put(BUY_FEE_CONFIG_ITEM_KEY, BUY_FEE_CONFIG_ITEM_VALUE); otherConfig.getItems().put(SELL_FEE_CONFIG_ITEM_KEY, SELL_FEE_CONFIG_ITEM_VALUE); assertEquals(2, otherConfig.getItems().size()); assertEquals(BUY_FEE_CONFIG_ITEM_VALUE, otherConfig.getItems().get(BUY_FEE_CONFIG_ITEM_KEY)); assertEquals(SELL_FEE_CONFIG_ITEM_VALUE, otherConfig.getItems().get(SELL_FEE_CONFIG_ITEM_KEY)); }