public void testGrobidModelsEnum_CustomModel() throws Exception {
GrobidModel model = GrobidModels.modelFor("dictionaries-senses");
assertThat(model.getFolderName(), is("dictionaries-senses"));
assertThat(model.getModelName(), is("dictionaries-senses"));
assertThat(model.getTemplateName(), is("dictionaries-senses.template"));
<BUG>assertThat(model.getModelPath(), endsWith("/grobid/grobid-home/models/dictionaries-senses/model.wapiti"));
GrobidModel model2 = GrobidModels.modelFor("dictionaries-lemma");</BUG>
assertFalse(model2.equals(model));
GrobidModel model3 = GrobidModels.modelFor("dictionaries-senses");
assertTrue(model3.equals(model));

public void testGrobidModelsEnum_CustomModel() throws Exception {
GrobidModel model = GrobidModels.modelFor("dictionaries-senses");
assertThat(model.getFolderName(), is("dictionaries-senses"));
assertThat(model.getModelName(), is("dictionaries-senses"));
assertThat(model.getTemplateName(), is("dictionaries-senses.template"));
String[] splittedPath = model.getModelPath().split("[/\\\\]");
assertThat(splittedPath[splittedPath.length-1], is("model.wapiti"));
assertThat(splittedPath[splittedPath.length-2], is("dictionaries-senses"));
assertThat(splittedPath[splittedPath.length-3], is("models"));
assertThat(splittedPath[splittedPath.length-4], is("grobid-home"));
GrobidModel model2 = GrobidModels.modelFor("dictionaries-lemma");
assertFalse(model2.equals(model));
GrobidModel model3 = GrobidModels.modelFor("dictionaries-senses");
assertTrue(model3.equals(model));
