Hi Tiago,
Yesterday i had exactly the same problem under windows, but i'm using a
different java version. There seems to be a \n not present at the end of the
test, but i'm no xwiki expert and therefore cannot help you on this.
Best of luck,
Miguel Bento.