@Override
  public void resetOriginalValues() {
    MBThreadModelImpl mbThreadModelImpl = this;

    mbThreadModelImpl._originalRootMessageId = mbThreadModelImpl._rootMessageId;

    mbThreadModelImpl._setOriginalRootMessageId = false;
  }
  @Test
  public void testResetOriginalValues() throws Exception {
    if (!PropsValues.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
      return;
    }

    MBThread newMBThread = addMBThread();

    _persistence.clearCache();

    MBThreadModelImpl existingMBThreadModelImpl =
        (MBThreadModelImpl) _persistence.findByPrimaryKey(newMBThread.getPrimaryKey());

    Assert.assertTrue(
        Validator.equals(
            existingMBThreadModelImpl.getUuid(), existingMBThreadModelImpl.getOriginalUuid()));
    Assert.assertEquals(
        existingMBThreadModelImpl.getGroupId(), existingMBThreadModelImpl.getOriginalGroupId());

    Assert.assertEquals(
        existingMBThreadModelImpl.getRootMessageId(),
        existingMBThreadModelImpl.getOriginalRootMessageId());
  }