### Question:
SpTokenizer implements Tokenizer { private void loadModel(Path modelPath, String prefix) throws IOException { if (Files.notExists(modelPath)) { throw new FileNotFoundException( "Model directory doesn't exist: " + modelPath.toAbsolutePath()); } modelDir = modelPath.toAbsolutePath(); Path modelFile = findModelFile(prefix); if (modelFile == null) { modelFile = findModelFile(modelDir.toFile().getName()); if (modelFile == null) { throw new FileNotFoundException("No .model found in : " + modelPath); } } String modelFilePath = modelFile.toString(); processor.loadModel(modelFilePath); } SpTokenizer(Path modelPath, String prefix); @Override List<String> tokenize(String sentence); @Override String buildSentence(List<String> tokens);  }### Answer:
@Test public void testLoadModel() throws IOException { if (System.getProperty("os.name").startsWith("Win")) { throw new SkipException("Skip windows test."); } Path modelPath = Paths.get("build/test/models"); String prefix = "sententpiece_test_model"; SpTokenizer tokenizer = new SpTokenizer(modelPath, prefix); tokenizer.getProcessor().close(); }