public void testRmEpsilon() throws NumberFormatException, IOException, ClassNotFoundException, URISyntaxException {
URL url = getClass().getResource("algorithms/rmepsilon/A.fst.txt");
File parent = new File(url.toURI()).getParentFile();
String path = new File(parent, "A").getPath();
Fst fst = Convert.importFst(path, new ProbabilitySemiring());
path = new File(parent, "fstrmepsilon.fst.ser").getPath();
Fst fstRmEps = Fst.loadModel(path);
Fst rmEpsilon = RmEpsilon.get(fst);
assertThat(fstRmEps, equalTo(rmEpsilon));