DaemonConfiguration { public List<MonitorConfiguration> getMonitors() { return this.monitors; } @JsonCreator  DaemonConfiguration(@JsonProperty("monitors")List<MonitorConfiguration> monitors,
                               @JsonProperty("shutdownAwaitTime")Integer shutdownAwaitTime); int getShutdownAwaitTime(); List<MonitorConfiguration> getMonitors(); static final int DEFAULT_SHUTDOWN_AWAIT_TIME; }
@Test void test_valid_monitors() { List<MonitorConfiguration> monitors = new ArrayList<>(); monitors.add(new MonitorConfiguration("com.company.Monitor", null)); DaemonConfiguration daemonConfiguration = new DaemonConfiguration(monitors, null); Assertions.assertEquals(monitors, daemonConfiguration.getMonitors()); }