### Question:
DfaScanner { public Optional<String> find(final String text) { return this.analysis(text, 1, false).getWords().stream().findFirst(); } 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 testFind() { assertTrue(scanner.find("淘交64易宝").isPresent()); assertTrue(!scanner.find("淘交易宝").isPresent()); scanner.find("淘宝交易").ifPresent(v -> assertTrue("淘宝".equals(v))); scanner.find("taobao交易").ifPresent(v -> assertTrue("taobao".equals(v))); scanner.find("交易TaoBao交易ｔａｏｂａｏ").ifPresent(v -> assertTrue("TaoBao".equals(v))); scanner.find("交易TaoooBao交易ｔａｏｂａｏ").ifPresent(v -> assertTrue("TaoooBao".equals(v))); }