### Question:
RemoveDictionaryMatchesTransformer implements Transformer { @Override public Object[] transform(final InputRow inputRow) { final String value = inputRow.getValue(_column); return transform(value); } RemoveDictionaryMatchesTransformer();  RemoveDictionaryMatchesTransformer(final InputColumn<String> column, final Dictionary dictionary,
            final DataCleanerConfiguration configuration); @Override OutputColumns getOutputColumns(); @Initialize void init(); @Close void close(); @Override Object[] transform(final InputRow inputRow); Object[] transform(String value); static final String PROPERTY_DICTIONARY; static final String PROPERTY_COLUMN; static final String OUTPUT_COLUMN_REMOVED_MATCHES; }### Answer:
@Test public void testWordBoundarySplitting() throws Throwable { transformer._removedMatchesType = RemovedMatchesType.STRING; assertEquals("", transformer.transform("")[0]); assertEquals("", transformer.transform("")[1]); assertEquals("., Software Engineer", transformer.transform(".Senior, Software Engineer")[0]); assertEquals("Senior", transformer.transform("Senior Software Engineer")[1]); }
@Test public void testJobTitleScenarioRemovedMatchesAsString() throws Throwable { transformer._removedMatchesType = RemovedMatchesType.STRING; assertEquals("", transformer.transform("")[0]); assertEquals("", transformer.transform("")[1]); assertEquals(" Software Engineer", transformer.transform("Senior Software Engineer")[0]); assertEquals("Senior", transformer.transform("Senior Software Engineer")[1]); assertEquals(" Designer ", transformer.transform(" Lead Designer ")[0]); assertEquals("Lead", transformer.transform(" Lead Designer ")[1]); assertEquals("Software Engineer", transformer.transform("Software Engineer")[0]); assertEquals("", transformer.transform("Software Engineer")[1]); assertEquals(" Guru of employees", transformer.transform("Principal Senior Lead Guru of Junior employees")[0]); assertEquals("Principal Senior Lead Junior", transformer.transform("Principal Senior Lead Guru of Junior employees")[1]); }
@Test public void testJobTitleScenarioRemovedMatchesAsList() throws Throwable { transformer._removedMatchesType = RemovedMatchesType.LIST; assertEquals(" Software Engineer", transformer.transform("Senior Software Engineer")[0]); assertEquals("[Senior]", transformer.transform("Senior Software Engineer")[1].toString()); assertEquals(" Designer ", transformer.transform(" Lead Designer ")[0]); assertEquals("[Lead]", transformer.transform(" Lead Designer ")[1].toString()); assertEquals("Software Engineer", transformer.transform("Software Engineer")[0]); assertEquals("[]", transformer.transform("Software Engineer")[1].toString()); assertEquals(" Guru of employees", transformer.transform("Principal Senior Lead Guru of Junior employees")[0]); assertEquals("[Principal, Senior, Lead, Junior]", transformer.transform("Principal Senior Lead Guru of Junior employees")[1].toString()); assertEquals("", transformer.transform("")[0]); assertEquals("[]", transformer.transform("")[1].toString()); }