@RunWith(LiferayIntegrationJUnitTestRunner.class)
@Sync
public class BookmarksSubscriptionTest extends BaseSubscriptionTestCase {
@Override
protected long addBaseModel(long containerModelId) throws Exception {
<BUG>ServiceContext serviceContext = ServiceTestUtil.getServiceContext(
group.getGroupId());
serviceContext.setCommand(Constants.ADD);
serviceContext.setLayoutFullURL("http://localhost");
BookmarksEntry entry = BookmarksEntryLocalServiceUtil.addEntry(

TestPropsValues.getUserId(), group.getGroupId(), containerModelId,
ServiceTestUtil.randomString(), "http://localhost",
StringPool.BLANK, serviceContext);</BUG>
return entry.getEntryId();

@RunWith(LiferayIntegrationJUnitTestRunner.class)
@Sync
public class BookmarksSubscriptionTest extends BaseSubscriptionTestCase {
@Override
protected long addBaseModel(long containerModelId) throws Exception {
BookmarksEntry entry = BookmarksTestUtil.addEntry(
containerModelId, true,
ServiceTestUtil.getServiceContext(group.getGroupId()));
return entry.getEntryId();
