EncryptTable { public boolean isCipherColumn(final String columnName) { return columns.values().stream().anyMatch(each -> each.getCipherColumn().equalsIgnoreCase(columnName)); } EncryptTable(final EncryptTableRuleConfiguration config); Optional<String> findEncryptorName(final String logicColumn); Collection<String> getLogicColumns(); String getLogicColumn(final String cipherColumn); boolean isCipherColumn(final String columnName); String getCipherColumn(final String logicColumn); Collection<String> getAssistedQueryColumns(); Optional<String> findAssistedQueryColumn(final String logicColumn); Collection<String> getPlainColumns(); Optional<String> findPlainColumn(final String logicColumn); Map<String, String> getLogicAndCipherColumns();  }
@Test public void assertIsCipherColumn() { assertTrue(encryptTable.isCipherColumn("CipherColumn")); }
@Test public void assertIsNotCipherColumn() { assertFalse(encryptTable.isCipherColumn("logicColumn")); }