MonitorConfiguration { public Map<String, Object> getSettings() { return this.settings; } @JsonCreator  MonitorConfiguration(@JsonProperty("monitorClass")String monitorClass,
                                @JsonProperty("settings")Map<String, Object> settings); String getMonitorClass(); Map<String, Object> getSettings();  }
@Test void test_null_settings() { MonitorConfiguration monitorConfiguration = new MonitorConfiguration("com.company.Monitor", null); Assertions.assertNotNull(monitorConfiguration.getSettings()); }
@Test void test_valid_settings() { Map<String, Object> settings = new HashMap<>(); settings.put("setting", "value"); MonitorConfiguration monitorConfiguration = new MonitorConfiguration("com.company.Monitor", settings); Assertions.assertEquals("value", monitorConfiguration.getSettings().get("setting")); }