@Test(expected = IndexOutOfBoundsException.class)
    public void addControlAtOutOfRange() {
        Spatial testSpatial = new Node("testSpatial");
        UpdateControl control1 = new UpdateControl();
        testSpatial.addControlAt(1, control1);
    }
Tests addControlAt() with an out-of-range positive index.
jme3-core/src/test/java/com/jme3/scene/SpatialTest.java