@Test
public void testDeserializeListRule() throws IOException, ClassNotFoundException {
File savedRule = makeTempFile("listRule.frr");
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(savedRule));
ListRule rule = (ListRule) ois.readObject();
assertTrue(rule.isAddToEnd());
assertFalse(rule.isAscending());
assertTrue(rule.getDigitsDisplayed() == 3);
assertTrue(rule.getListStyleState() == ListStyle.ROMAN_NUMERALS);
assertTrue(rule.getSeperatorToken().equals("<(^^<)"));
assertTrue(rule.getStartFrom() == 1);
}