### Question:
PatternColumnMapper implements ColumnMapper { @Override public boolean isEncrypted(DbAttribute column) { return columnNamePattern.matcher(column.getName()).find(); } PatternColumnMapper(String columnNamePattern); @Override boolean isEncrypted(DbAttribute column);  }### Answer:
@Test public void testIsEncrypted() { PatternColumnMapper mapper = new PatternColumnMapper("^bla_"); assertTrue(mapper.isEncrypted(new DbAttribute("bla_"))); assertTrue(mapper.isEncrypted(new DbAttribute("bla_x"))); assertFalse(mapper.isEncrypted(new DbAttribute("_bla_x"))); assertFalse(mapper.isEncrypted(new DbAttribute("nnn"))); }