### Question:
PlainSearchReplaceTransformer implements Transformer { public void setReplaceEntireString(final boolean replaceEntireString) { this.replaceEntireString = replaceEntireString; }  static void processRemovedProperties(final ComponentBuilder builder, final StringConverter stringConverter,
            final ComponentDescriptor<?> descriptor, final Map<String, String> removedProperties); static boolean isRemovedProperty(final ComponentDescriptor<?> descriptor, final String name); @Validate void validate(); @Override OutputColumns getOutputColumns(); @Override String[] transform(final InputRow row); void setReplacements(final Map<String, String> replacements); void setReplaceEntireString(final boolean replaceEntireString);  }### Answer:
@Test public void testReplacementEntireString() throws Exception { final PlainSearchReplaceTransformer transformer = createTransformer(); transformer.setReplaceEntireString(true); transformer.replacements.put("foo", "hello"); transformer.replacements.put("bar", "world"); final Map<String, String> testData = new LinkedHashMap<>(); testData.put("foo bar", "[hello]"); testData.put("hello bar world foo", "[hello]"); testData.put("hello world", "[hello world]"); assertExpectedValues(transformer, testData); }