Weather { public WeatherType weatherType() { return this.type; } 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 testWeatherType() { Weather weather = new Weather(); weather.setNameType("Default", WeatherType.DEFAULT); Assert.assertEquals(WeatherType.DEFAULT, weather.weatherType()); weather.setNameType("Default", WeatherType.RAINING); Assert.assertEquals(WeatherType.RAINING, weather.weatherType()); }