@Test
    public void testConstructorOnTypes() {
        assertMassesToConstraint(0, 1, SHOULDER, 0, 1, ARM_SEGMENT, ROBOT_ARM_BASE_CONSTRAINT);
        assertMassesToConstraint(0, 1, SHOULDER, 0, 2, INPUT, FIXED_CONSTRAINT);
        assertMassesToConstraint(0, 2, INPUT, 3, 3, NETWORK, SPRING_CONSTRAINT);
        assertMassesToConstraint(3, 3, NETWORK, 4, 4, NETWORK, SPRING_CONSTRAINT);
        assertMassesToConstraint(4, 4, NETWORK, 0, 10, INPUT, SPRING_CONSTRAINT);
        assertMassesToConstraint(0, 10, INPUT, 0, 11, ELBOW, FIXED_CONSTRAINT);
        assertMassesToConstraint(0, 11, ARM_SEGMENT, 0, 12, INPUT, FIXED_CONSTRAINT);
        assertMassesToConstraint(0, 11, ARM_SEGMENT, 0, 11, ARM_SEGMENT, ROBOT_ARM_JOINT_CONSTRAINT);
        assertMassesToConstraint(0, 11, ELBOW, 0, 11, ARM_SEGMENT, FIXED_CONSTRAINT);
        assertMassesToConstraint(0, 11, ELBOW, 0, 11, INPUT, FIXED_CONSTRAINT);
        assertMassesToConstraint(0, 20, INPUT, 0, 21, HAND, FIXED_CONSTRAINT);
        assertMassesToConstraint(0, 21, ARM_SEGMENT, 0, 21, HAND, FIXED_CONSTRAINT);
    }