@Test
  public void testSubscriptionBaseModelWhenInRootContainerModel() throws Exception {

    long baseModelId = addBaseModel(BaseSubscriptionTestCase.PARENT_CONTAINER_MODEL_ID_DEFAULT);

    addSubscriptionBaseModel(baseModelId);

    updateBaseModel(baseModelId);

    Assert.assertEquals(1, MailServiceTestUtil.getInboxSize());
  }
  @Test
  public void testSubscriptionContainerModelWhenInRootContainerModel() throws Exception {

    long containerModelId = addContainerModel(PARENT_CONTAINER_MODEL_ID_DEFAULT);

    addSubscriptionContainerModel(containerModelId);

    addBaseModel(PARENT_CONTAINER_MODEL_ID_DEFAULT);

    Assert.assertEquals(0, MailServiceTestUtil.getInboxSize());
  }
  @Test
  public void testSubscriptionBaseModelWhenInNoViewableContainerModel() throws Exception {

    long containerModelId =
        addContainerModel(BaseSubscriptionTestCase.PARENT_CONTAINER_MODEL_ID_DEFAULT);

    long baseModelId = addBaseModel(containerModelId);

    addSubscriptionBaseModel(baseModelId);

    removeContainerModelResourceViewPermission();

    updateBaseModel(baseModelId);

    Assert.assertEquals(0, MailServiceTestUtil.getInboxSize());
  }