StrategyConfig { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("id", id) .add("name", name) .add("description", description) .add("className", className) .add("beanName", beanName) .add("configItems", configItems) .toString(); } StrategyConfig();  StrategyConfig(StrategyConfig other);  StrategyConfig(
      String id,
      String name,
      String description,
      String className,
      String beanName,
      Map<String, String> configItems); String getId(); void setId(String id); String getName(); void setName(String name); String getDescription(); void setDescription(String description); String getClassName(); void setClassName(String className); String getBeanName(); void setBeanName(String beanName); Map<String, String> getConfigItems(); void setConfigItems(Map<String, String> configItems); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToStringWorksAsExpected() { final StrategyConfig strategy = new StrategyConfig(ID, LABEL, DESCRIPTION, CLASSNAME, BEAN_NAME, CONFIG_ITEMS); assertEquals( "StrategyConfig{id=macd-long-position, name=MACD Long Position Algo, " + "description=Uses MACD as indicator and takes long position in base currency., " + "className=com.gazbert.nova.algos.MacdLongBase, beanName=macdLongBase," + " configItems={}}", strategy.toString()); }