EncryptTable { public Collection<String> getPlainColumns() { Collection<String> result = new LinkedList<>(); for (EncryptColumn each : columns.values()) { if (each.getPlainColumn().isPresent()) { result.add(each.getPlainColumn().get()); } } return result; } 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 assertGetPlainColumns() { assertThat(encryptTable.getPlainColumns(), is(Collections.singletonList("plainColumn"))); }