### Question:
DfaScanner { public String replace(final String text) { return this.analysis(text, 0, true).getText(); } DfaScanner(List<String> sensitivewords);  DfaScanner(String symbols, List<String> sensitivewords); boolean contains(final String text); String replace(final String text); Optional<String> find(final String text); List<String> findAll(final String text);  }### Answer:
@Test public void testReplace() { assertTrue(scanner.replace("64淘44交64易94宝66").equals("**淘44交**易94宝66")); assertTrue(scanner.replace("日淘交易宝").equals("*淘交易宝")); assertTrue(scanner.replace("淘交易宝").equals("淘交易宝")); assertTrue(scanner.replace("淘宝交易").equals("**交易")); assertTrue(scanner.replace("taobao交易").equals("******交易")); assertTrue(scanner.replace("TaoBao交易ｔａｏｂａｏ").equals("******交易******")); assertTrue(scanner.replace("淘交易宝日").equals("淘交易宝*")); }
@Test public void testIssuesIzlsa() { assertTrue("**********".equals(scanner.replace("<<><><><>>"))); }