public void testIncreaseOneLeafSize() {
Point3d firstInitialEndPoint1 = firstLeafState.getLeaf3DState().getInitialEndPoint1().toPointValue();
branchPartState.setEnergy(new BigDecimal(150));
// set all the leaves at their maximum size, so that they can not be increased anymore
for (TreeLeafState leafState : branchPartState.getLeaveStates()) {
TreeLeaf3DState leaf3dState = leafState.getLeaf3DState();
Point3dState initialEndPoint1 = leaf3dState.getInitialEndPoint1();
leaf3dState.setEndPoint1(new Point3dState(initialEndPoint1.getX() * 10, initialEndPoint1.getY() * 10,
initialEndPoint1.getZ() * 10));
Point3dState initialEndPoint2 = leaf3dState.getInitialEndPoint2();
leaf3dState.setEndPoint2(new Point3dState(initialEndPoint2.getX() * 10, initialEndPoint2.getY() * 10,
initialEndPoint2.getZ() * 10));
}
// set the first leaf end point to (0,0,0) so that it can be increased
firstLeafState.getLeaf3DState().setEndPoint1(new Point3dState());
BasicTreeBranchPart part = new BasicTreeBranchPart(new MockUniverse(), branchPartState);