EncryptRuleConfigurationYamlSwapper implements YamlRuleConfigurationSwapper<YamlEncryptRuleConfiguration, EncryptRuleConfiguration> { @Override public EncryptRuleConfiguration swapToObject(final YamlEncryptRuleConfiguration yamlConfig) { return new EncryptRuleConfiguration(swapTables(yamlConfig), swapEncryptAlgorithm(yamlConfig)); }  @Override YamlEncryptRuleConfiguration swapToYamlConfiguration(final EncryptRuleConfiguration data); @Override EncryptRuleConfiguration swapToObject(final YamlEncryptRuleConfiguration yamlConfig); @Override Class<EncryptRuleConfiguration> getTypeClass(); @Override String getRuleTagName(); @Override int getOrder();  }
@Test public void assertSwapToObject() { EncryptRuleConfiguration actual = getSwapper().swapToObject(createYamlEncryptRuleConfiguration()); assertThat(actual.getTables().size(), is(1)); assertThat(actual.getEncryptors().size(), is(1)); }