Weather { protected void addComponents(WeatherComponent component) { this.weatherComponents.add(component); } 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 testAddComponents() { Weather weather = new Weather(); WeatherComponent component = new WeatherComponent("Random"); Assert.assertTrue(weather.getComponents().isEmpty()); weather.addComponents(component); Assert.assertTrue(!weather.getComponents().isEmpty()); }