void () { final Pattern pattern = convertToPattern("/**"); assertTrue(pattern.matcher("dir/subdir/ttt").matches()); assertTrue(pattern.matcher("dir/subdir/aaa/ttt").matches()); assertTrue(pattern.matcher("dir/subdir").matches()); }