Individual { public Object getPhenotype() { return phenotype; } @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 getPhenotypeTest() { Individual individual = new Individual(); String p = "phenotype"; individual.setPhenotype(p); Assert.assertTrue(p == individual.getPhenotype()); Assert.assertEquals(State.PHENOTYPED, individual.getState()); Assert.assertTrue(individual.isDecoded()); }