@Override
    public EncryptColumnRuleConfiguration swapToObject(final YamlEncryptColumnRuleConfiguration yamlConfig) {
        EncryptColumnRuleConfiguration result = new EncryptColumnRuleConfiguration(yamlConfig.getName(), encryptColumnItemSwapper.swapToObject(yamlConfig.getCipher()));
        if (null != yamlConfig.getAssistedQuery()) {
            result.setAssistedQuery(encryptColumnItemSwapper.swapToObject(yamlConfig.getAssistedQuery()));
        }
        if (null != yamlConfig.getLikeQuery()) {
            result.setLikeQuery(encryptColumnItemSwapper.swapToObject(yamlConfig.getLikeQuery()));
        }
        return result;
    }
@Test
    void assertSwapToObject() {
        YamlEncryptColumnRuleConfigurationSwapper swapper = new YamlEncryptColumnRuleConfigurationSwapper();
        EncryptColumnRuleConfiguration actual = swapper.swapToObject(buildYamlEncryptColumnRuleConfiguration());
        assertThat(actual.getName(), is("logicColumn"));
        assertThat(actual.getCipher().getName(), is("cipherColumn"));
        assertTrue(actual.getAssistedQuery().isPresent());
        assertThat(actual.getAssistedQuery().get().getName(), is("assistedQueryColumn"));
        assertTrue(actual.getLikeQuery().isPresent());
        assertThat(actual.getLikeQuery().get().getName(), is("likeQueryColumn"));
        assertThat(actual.getCipher().getEncryptorName(), is("encryptorName"));
    }