public void reset() {
    descriptor.setShouldDisableCacheHitsOnRemote(orgDisableCacheHitsOnRemote);

    serverDescriptor.setShouldDisableCacheHits(orgServerDisableCacheHits);
    serverSession.setSessionLog(oldLog);

    super.reset();
  }
  protected void setup() {
    super.setup();
    orgDisableCacheHitsOnRemote = descriptor.shouldDisableCacheHitsOnRemote();
    descriptor.setShouldDisableCacheHitsOnRemote(false);

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