import junit.framework.TestCase;
public class DataAccessRuleTest extends TestCase {
public void testEqualRoot() {
DataAccessRule rule1 = new DataAccessRule("*", "*", AccessMode.READ);
DataAccessRule rule2 = new DataAccessRule("*", "*", AccessMode.READ);
assertEquals(0, rule1.compareTo(rule2));
assertEquals(rule1, rule2);
assertEquals(rule1.hashCode(), rule2.hashCode());
}