junit test for rating