MarketConfig { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("id", id) .add("name", name) .add("baseCurrency", baseCurrency) .add("counterCurrency", counterCurrency) .add("enabled", enabled) .add("tradingStrategyId", tradingStrategyId) .toString(); } MarketConfig();  MarketConfig(MarketConfig other);  MarketConfig(
      String id,
      String name,
      String baseCurrency,
      String counterCurrency,
      boolean enabled,
      String tradingStrategyId); String getId(); void setId(String id); String getName(); void setName(String name); String getBaseCurrency(); void setBaseCurrency(String baseCurrency); String getCounterCurrency(); void setCounterCurrency(String counterCurrency); boolean isEnabled(); void setEnabled(boolean enabled); String getTradingStrategyId(); void setTradingStrategyId(String tradingStrategyId); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToStringWorksAsExpected() { final MarketConfig market1 = new MarketConfig(ID, NAME, BASE_CURRENCY, COUNTER_CURRENCY, IS_ENABLED, TRADING_STRATEGY); assertEquals( "MarketConfig{id=gemini_usd/btc, name=BTC/USD, baseCurrency=BTC," + " counterCurrency=USD, enabled=true, tradingStrategyId=macd_trend_follower}", market1.toString()); }