FileStateManagerConfig { @Config("coordinator.expected-state.dir") public FileStateManagerConfig setExpectedStateDir(String expectedStateDir) { this.expectedStateDir = expectedStateDir; return this; }  @NotNull String getExpectedStateDir(); @Config("coordinator.expected-state.dir") FileStateManagerConfig setExpectedStateDir(String expectedStateDir);  }
@Test public void testDefaults() { ConfigAssertions.assertRecordedDefaults(ConfigAssertions.recordDefaults(FileStateManagerConfig.class) .setExpectedStateDir("expected-state") ); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("coordinator.expected-state.dir", "state") .build(); FileStateManagerConfig expected = new FileStateManagerConfig() .setExpectedStateDir("state"); ConfigAssertions.assertFullMapping(properties, expected); }