Individual { public Genotype getGenotype() { return genotype; } @Inject protected  Individual(); Object getPhenotype(); Objectives getObjectives(); Genotype getGenotype(); void setGenotype(Genotype genotype); void setPhenotype(Object phenotype); void setObjectives(Objectives objectives); boolean isDecoded(); boolean isEvaluated(); void setState(State state); State getState();  }
@Test public void getGenotypeTest() { Individual individual = new Individual(); Genotype g = new PermutationGenotype<Object>(); individual.setGenotype(g); Assert.assertTrue(g == individual.getGenotype()); Assert.assertEquals(State.GENOTYPED, individual.getState()); }