### Question:
QueryMonitorConfig { @Config("event.max-output-stage-size") public QueryMonitorConfig setMaxOutputStageJsonSize(DataSize maxOutputStageJsonSize) { this.maxOutputStageJsonSize = maxOutputStageJsonSize; return this; }  @MinDataSize("1kB") @MaxDataSize("1GB") @NotNull DataSize getMaxOutputStageJsonSize(); @Config("event.max-output-stage-size") QueryMonitorConfig setMaxOutputStageJsonSize(DataSize maxOutputStageJsonSize);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(QueryMonitorConfig.class) .setMaxOutputStageJsonSize(DataSize.of(16, Unit.MEGABYTE))); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("event.max-output-stage-size", "512kB") .build(); QueryMonitorConfig expected = new QueryMonitorConfig() .setMaxOutputStageJsonSize(DataSize.of(512, Unit.KILOBYTE)); assertFullMapping(properties, expected); }