@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));
}