encapsulator.withArmLength(20);
}
@Test (expected = IllegalStateException.class)
public void modifyEncapsulatedObject_viaTheBuilder() {
ArmBuilder builder = Arm.build();
builder.asArm();
// Trying to modify state after encapsulation.
builder.withArmLength(10);
}