List<TreeLeafState> leaveStates = new ArrayList<TreeLeafState>(nbLeaves);
for (int i = 0; i < nbLeaves; i++) {
leaveStates.add(createSpecificTreeLeafState());
}
TreeBranchPart3DState branchPart3DState = DisplayDataCreatorForTests.createRandomTreeBranchPart3DState();
return new TreeBranchPartState(createRandomId(), age, energy, freeEnergy, leaveStates, branchPart3DState);
}