GovernanceCenterConfigurationYamlSwapper implements YamlSwapper<YamlGovernanceCenterConfiguration, GovernanceCenterConfiguration> { @Override public GovernanceCenterConfiguration swapToObject(final YamlGovernanceCenterConfiguration yamlConfig) { return new GovernanceCenterConfiguration(yamlConfig.getType(), yamlConfig.getServerLists(), yamlConfig.getProps()); }  @Override YamlGovernanceCenterConfiguration swapToYamlConfiguration(final GovernanceCenterConfiguration config); @Override GovernanceCenterConfiguration swapToObject(final YamlGovernanceCenterConfiguration yamlConfig);  }
@Test public void assertSwapToObject() { YamlGovernanceCenterConfiguration yamlConfig = getYamlGovernanceCenterConfiguration(); GovernanceCenterConfiguration governanceCenterConfig = new GovernanceCenterConfigurationYamlSwapper().swapToObject(yamlConfig); assertThat(governanceCenterConfig.getType(), is(yamlConfig.getType())); assertThat(governanceCenterConfig.getServerLists(), is(yamlConfig.getServerLists())); assertThat(governanceCenterConfig.getProps(), is(yamlConfig.getProps())); }