public class TreeGrowthTest extends TestCase {
public void testExecuteCyclicStep() {
MockTreeLeaf mockLeaf = new MockTreeLeaf();
MockTreeBranchPart mockBranchPart = new MockTreeBranchPart();
mockBranchPart.addLeaf(mockLeaf);
MockTreeBranch mockBranch = new MockTreeBranch();
mockBranch.addPart(mockBranchPart);
MockTree mockTree = new MockTree();
mockTree.addBranch(mockBranch);
TreeGrowth treeGrowth = new TreeGrowth(UtilDataCreatorForTests.createSpecificConditionalTaskState(), mockTree);
treeGrowth.executeConditionalStep();
assertEquals(1, mockLeaf.getNbImproveEfficiencyCalled());
assertEquals(1, mockBranchPart.getNbGrowCalled());
}