@Test(expected = EntryScoreException.class)
  public void testRatingScoreLessThan0IsInvalidScore() throws Exception {
    ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext(_group.getGroupId());

    RatingsEntryLocalServiceUtil.updateEntry(
        TestPropsValues.getUserId(),
        RandomTestUtil.randomString(),
        RandomTestUtil.randomLong(),
        -1,
        serviceContext);
  }
  @Test
  public void testRatingScore1IsValidScore() throws Exception {
    ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext(_group.getGroupId());

    RatingsEntry ratingsEntry =
        RatingsEntryLocalServiceUtil.updateEntry(
            TestPropsValues.getUserId(),
            RandomTestUtil.randomString(),
            RandomTestUtil.randomLong(),
            1,
            serviceContext);

    Assert.assertEquals(1, ratingsEntry.getScore(), 0.001);
  }