cam.setViewPort( -0.5f, 1, 0, 2 ); cam.update();
    public void testGetScreenCoordinates() {        if ( !checkLWJGL() ) {            return;        }        pass = false;        new SimpleHeadlessApp() {            protected void simpleInitGame() {                checkScreenCoordinates( new Vector3f( 2, 3, 4 ), cam );                checkScreenCoordinates( new Vector3f( 100, 3, 4 ), cam );                checkScreenCoordinates( new Vector3f( 20, 30, 400 ), cam );                checkScreenCoordinates( new Vector3f( -20, 3, 4 ), cam );                checkScreenCoordinates( new Vector3f( -50, 30, 4 ), cam );                checkScreenCoordinates( new Vector3f( 3, 3, 400 ), cam );                checkScreenCoordinates( new Vector3f( -7, 30, 4 ), cam );                pass = true;                finished = true;            }            protected void quit() {                if ( display != null ) {                    display.close();                }            }        }.start();        assertTrue( "test was run", pass );    }