@Override
    public void simpleInitApp() {
        Box b = new Box(1, 1, 1);
        Geometry geom = new Geometry("Box", b);
        Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
        mat.setTexture("ColorMap", assetManager.loadTexture("Interface/Logo/Monkey.jpg"));
        geom.setMaterial(mat);
        rootNode.attachChild(geom);

        System.out.println("Attaching test state.");
        stateManager.attach(new TestState());
        
        System.out.println("Attaching test state with an ID.");
        stateManager.attach(new TestState("Test ID"));        
    }
Tests the app state lifecycles.

 @author    Paul Speed
jme3-examples/src/main/java/jme3test/app/TestAppStateLifeCycle.java