EngineConfig { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("botId", botId) .add("botName", botName) .add("emergencyStopCurrency", emergencyStopCurrency) .add("emergencyStopBalance", emergencyStopBalance) .add("tradeCycleInterval", tradeCycleInterval) .toString(); } EngineConfig();  EngineConfig(
      String botId,
      String botName,
      String emergencyStopCurrency,
      BigDecimal emergencyStopBalance,
      int tradeCycleInterval); String getBotId(); void setBotId(String botId); String getBotName(); void setBotName(String botName); String getEmergencyStopCurrency(); void setEmergencyStopCurrency(String emergencyStopCurrency); BigDecimal getEmergencyStopBalance(); void setEmergencyStopBalance(BigDecimal emergencyStopBalance); int getTradeCycleInterval(); void setTradeCycleInterval(int tradeCycleInterval); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToStringWorksAsExpected() { final EngineConfig engineConfig = new EngineConfig( BOT_ID, BOT_NAME, EMERGENCY_STOP_CURRENCY, EMERGENCY_STOP_BALANCE, TRADE_CYCLE_INTERVAL); assertEquals( "EngineConfig{botId=avro-707_1, botName=Avro 707, emergencyStopCurrency=BTC, " + "emergencyStopBalance=1.5, tradeCycleInterval=30}", engineConfig.toString()); }