@Test
    public void testMask12() {
        ArmatureMask[] maskArray = new ArmatureMask[4];
        maskArray[0] = new ArmatureMask();
        maskArray[0].addBones(arm, "j1", "j2");

        maskArray[1] = ArmatureMask.createMask(arm, "j3")
                .removeJoints(arm, "j0", "j3");

        maskArray[2] = new ArmatureMask()
                .addAncestors(j1)
                .removeAncestors(j3);

        ArmatureMask mask0 = ArmatureMask.createMask(arm, "j0");
        maskArray[3] = ArmatureMask.createMask(arm, "j2")
                .remove(mask0);

        for (ArmatureMask testMask : maskArray) {
            for (Joint testJoint : jointList) {
                if (testJoint == j1 || testJoint == j2) {
                    Assert.assertTrue(testMask.contains(testJoint));
                } else {
                    Assert.assertFalse(testMask.contains(testJoint));
                }
            }
        }
    }
Instantiate masks that affect only j1 and j2.
jme3-core/src/test/java/com/jme3/anim/ArmatureMaskTest.java