Rule.java

Check style for Rule.java
Add unit tests for Rule.java
Update build.xml and ChangeLog