void () { RegexFacade regex = RegexFacade.regex("[0-9]+"); byte[] stringBytes = "Failed search".getBytes(StandardCharsets.UTF_8); Searcher searcher = regex.searcher(stringBytes); assertFalse(searcher.search()); assertEquals(-1, searcher.getCurrentCharPosition()); assertFalse(searcher.search()); }