A 3-D environment test written in Java