/* (non-Javadoc)
  * @see org.evosuite.ga.Chromosome#clone()
  */
 @Override
 public Chromosome clone() {
   RegressionTestChromosome copy = new RegressionTestChromosome();
   copy.theClassLoader =
       TestGenerationContext.getInstance()
           .getRegressionClassLoaderForSUT(); // I don't think this should be a member of this
                                              // class to be honest!
   copy.theTest = (TestChromosome) theTest.clone();
   copy.theSameTestForTheOtherClassLoader =
       (TestChromosome) theSameTestForTheOtherClassLoader.clone();
   copy.setFitnessValues(getFitnessValues());
   copy.fitnessData = fitnessData;
   copy.objDistance = objDistance;
   copy.diversityMap.putAll(diversityMap);
   copy.exCommentsAdded = exCommentsAdded;
   return copy;
 }
 protected void updateClassloader() {
   if (theTest.isChanged()) {
     theSameTestForTheOtherClassLoader = (TestChromosome) theTest.clone();
     ((DefaultTestCase) theSameTestForTheOtherClassLoader.getTestCase())
         .changeClassLoader(TestGenerationContext.getInstance().getRegressionClassLoaderForSUT());
     //	ClassLoader a = theTest.getClass().getClassLoader();
     //	ClassLoader b = theSameTestForTheOtherClassLoader.getClass().getClassLoader();
     // logger.warn("a {} b {} cl {} rcl
     // {}",a,b,TestGenerationContext.getInstance().getClassLoaderForSUT(),TestGenerationContext.getInstance().getRegressionClassLoaderForSUT());
   }
 }