FileAuthorizedKeyStoreConfig { @Config("coordinator.auth.authorized-keys-dir") @ConfigDescription("Directory of files named as the userid and containing authorized keys") public FileAuthorizedKeyStoreConfig setAuthorizedKeysDir(String authorizedKeysDir) { this.authorizedKeysDir = authorizedKeysDir; return this; }  @NotNull String getAuthorizedKeysDir(); @Config("coordinator.auth.authorized-keys-dir") @ConfigDescription("Directory of files named as the userid and containing authorized keys") FileAuthorizedKeyStoreConfig setAuthorizedKeysDir(String authorizedKeysDir);  }
@Test public void testDefaults() { ConfigAssertions.assertRecordedDefaults(ConfigAssertions.recordDefaults(FileAuthorizedKeyStoreConfig.class) .setAuthorizedKeysDir("authorized-keys") ); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("coordinator.auth.authorized-keys-dir", "keys") .build(); FileAuthorizedKeyStoreConfig expected = new FileAuthorizedKeyStoreConfig() .setAuthorizedKeysDir("keys"); ConfigAssertions.assertFullMapping(properties, expected); }