### Question:
SimpleRegexReplacer implements StandardizationPolicy { public Boolean accepts (Object value) { return (value instanceof String); } SimpleRegexReplacer(@PolicyPropertyRef(name = "Regex Pattern") String regex,
                               @PolicyPropertyRef(name = "Replacement") String replace); @Override String convertValue(String value); Pattern getPattern(); String getReplacement(); boolean isValid(); Boolean accepts(Object value); Object convertRawValue(Object value);  }### Answer:
@Test public void testAcceptValidType() { SimpleRegexReplacer regexReplacer = new SimpleRegexReplacer("(?i)foo", "bar"); assertTrue(regexReplacer.accepts("foofeefoofie")); }
@Test public void testAcceptInvalidType() { SimpleRegexReplacer regexReplacer = new SimpleRegexReplacer("(?i)foo", "bar"); Double doubleValue = 1000.05d; assertFalse(regexReplacer.accepts(doubleValue)); }