Weather { public Boolean load(List<String> settings) { if (settings == null) { return false; } for (String setting : settings) { LOGGER.debug(setting); } return true; } 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 testLoad() { Weather weather = new Weather(); List<String> settings = new ArrayList<>(); settings.add("Example"); settings.add("Settings"); Assert.assertTrue(weather.load(settings)); Assert.assertTrue(!weather.load(null)); }