public void setup() {
    m_addressDesc =
        getSession()
            .getClassDescriptor(org.eclipse.persistence.testing.models.insurance.Address.class);
    m_addressDisableCacheHits = m_addressDesc.shouldDisableCacheHits();
    m_addressAlwaysrefreshCache = m_addressDesc.shouldAlwaysRefreshCache();
    m_addressDesc.disableCacheHits();
    m_addressDesc.alwaysRefreshCache();

    m_policyHolderDesc =
        getSession()
            .getClassDescriptor(
                org.eclipse.persistence.testing.models.insurance.PolicyHolder.class);
    m_policyHolderDisableCacheHits = m_policyHolderDesc.shouldDisableCacheHits();
    m_policyHolderAlwaysrefreshCache = m_policyHolderDesc.shouldAlwaysRefreshCache();
    m_policyHolderDesc.disableCacheHits();
    m_policyHolderDesc.alwaysRefreshCache();
  }
  protected void setup() {
    super.setup();
    orgDisableCacheHitsOnRemote = descriptor.shouldDisableCacheHitsOnRemote();
    descriptor.setShouldDisableCacheHitsOnRemote(true);

    serverSession = ((ClientSession) RemoteModel.getServerSession()).getParent();
    // Set shouldDisableCacheHits to true on the server session
    serverDescriptor =
        serverSession.getDescriptor(
            org.eclipse.persistence.testing.models.employee.domain.Employee.class);
    orgServerDisableCacheHits = serverDescriptor.shouldDisableCacheHits();
    serverDescriptor.setShouldDisableCacheHits(true);
    // Set shouldLogMessages to true on the server session
    oldLog = serverSession.getSessionLog();
    tempStream = new StringWriter();
    serverSession.setLog(tempStream);
    serverSession.setLogLevel(SessionLog.FINE);
  }