Weather { @Override public String toString() { return this.name; } Weather();  Weather(List<String> settings); @Override String toString(); WeatherType weatherType(); Map<String, Integer> getComponents(); Boolean load(List<String> settings); void onDeath(); void replace(WeatherType key, double val); String getPath();  }
@Test public void testToString() { Weather weather = new Weather(); weather.setNameType("first name", WeatherType.DEFAULT); Assert.assertEquals("first name", weather.toString()); weather.setNameType("second name", WeatherType.DEFAULT); Assert.assertEquals("second name", weather.toString()); }