public void testResetOriginalValues() throws Exception {
    if (!PropsValues.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) {
      return;
    }

    WikiPageResource newWikiPageResource = addWikiPageResource();

    _persistence.clearCache();

    WikiPageResourceModelImpl existingWikiPageResourceModelImpl =
        (WikiPageResourceModelImpl)
            _persistence.findByPrimaryKey(newWikiPageResource.getPrimaryKey());

    assertEquals(
        existingWikiPageResourceModelImpl.getNodeId(),
        existingWikiPageResourceModelImpl.getOriginalNodeId());
    assertTrue(
        Validator.equals(
            existingWikiPageResourceModelImpl.getTitle(),
            existingWikiPageResourceModelImpl.getOriginalTitle()));
  }
  @Override
  public void resetOriginalValues() {
    WikiPageResourceModelImpl wikiPageResourceModelImpl = this;

    wikiPageResourceModelImpl._originalUuid = wikiPageResourceModelImpl._uuid;

    wikiPageResourceModelImpl._originalNodeId = wikiPageResourceModelImpl._nodeId;

    wikiPageResourceModelImpl._setOriginalNodeId = false;

    wikiPageResourceModelImpl._originalTitle = wikiPageResourceModelImpl._title;

    wikiPageResourceModelImpl._columnBitmask = 0;
  }