GrowInitialiser implements CreationOperation, Stochastic { public void setRNG(RandomNumberGenerator m) { this.rng = m; } GrowInitialiser(RandomNumberGenerator rng, GEGrammar gegrammar, int maxDepth);  GrowInitialiser(RandomNumberGenerator rng, GEGrammar gegrammar, Properties p); void setRNG(RandomNumberGenerator m); RandomNumberGenerator getRNG(); void setProperties(Properties p); Individual createIndividual(); int getMinDepth(); void setMinDepth(int minDepth); void setMaxDepth(int i); int getMaxDepth(); void doOperation(Individual operand); void doOperation(List<Individual> operands); Genotype getGenotype(int maxLength); boolean grow(NimbleTree<Symbol> dt);  }
@Test public void testSetRNG() { System.out.println("setRNG"); GrowInitialiser giTest = new GrowInitialiser(rng, cgeg, p); giTest.setRNG(rng); RandomNumberGenerator result = giTest.getRNG(); assertEquals(true, result instanceof MersenneTwisterFast); }