Fix #792 : JUnit 4.12 compatibility

Pull request with maven profile for test with JUnit 4.12 (still in beta version)