refactored ConstrettoRule to be a ClassRule making it more compatible with Spring and other frameworks. This change resolve #26