@Test
public void testHasViewPermissionReturnsTrueWhenUserHasPermission()
	throws Exception {

	Mockito.when(
		_modelResourcePermission.contains(
			Mockito.any(PermissionChecker.class),
			Mockito.any(BookmarksEntry.class), Mockito.anyString())
	).thenReturn(
		true
	);
	AssetRenderer<BookmarksEntry> assetRenderer =
		new BookmarksEntryAssetRenderer(
			_bookmarksEntry, _modelResourcePermission);
	Assert.assertTrue(assetRenderer.hasViewPermission(_permissionChecker));
}