AsahSegmentsEntryProvider implements SegmentsEntryProvider { @Override public int getSegmentsEntryClassPKsCount(long segmentsEntryId) throws PortalException { return _segmentsEntryRelLocalService.getSegmentsEntryRelsCount( segmentsEntryId); }  @Override long[] getSegmentsEntryClassPKs(
			long segmentsEntryId, int start, int end); @Override int getSegmentsEntryClassPKsCount(long segmentsEntryId); @Override long[] getSegmentsEntryIds(
		long groupId, String className, long classPK, Context context);  }
@Test public void testGetSegmentsEntryClassPKsCount() throws PortalException { long segmentsEntryId = RandomTestUtil.randomLong(); int segmentsEntryRelIdsLength = RandomTestUtil.randomInt(); Mockito.when( _segmentsEntryRelLocalService.getSegmentsEntryRelsCount( segmentsEntryId) ).thenReturn( segmentsEntryRelIdsLength ); Assert.assertEquals( segmentsEntryRelIdsLength, _asahSegmentsEntryProvider.getSegmentsEntryClassPKsCount( segmentsEntryId)); }