builder.withArmLength(10);
}
@Test (expected = IllegalStateException.class)
public void modifyEncapsulatedList() {
ArmEncapsulator encapsulator = Arm.armWeight(1);
Arm.createList(encapsulator).asArmList();
// Trying to modify state of an element after encapsulation of the list.
encapsulator.withArmLength(3);
}