Weather { protected void setNameType(String name, WeatherType type) { this.name = name; this.type = 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 testSetNameType() { String name = "Test Name"; Weather weather = new Weather(); weather.setNameType(name, WeatherType.DEFAULT); Assert.assertEquals(name, weather.toString()); Assert.assertEquals(WeatherType.DEFAULT, weather.weatherType()); }