*/
@Test
public void testAttachedVisualSceneInstance() throws URISyntaxException
{
final Scene oldScene = new Scene();
final Scene scene = new Scene();
final VisualSceneInstance instance = new VisualSceneInstance(
new URI("foo"));
oldScene.setVisualSceneInstance(instance);
scene.setVisualSceneInstance(instance);
assertNull(oldScene.getVisualSceneInstance());
assertSame(scene, instance.getScene());
assertSame(instance, scene.getVisualSceneInstance());
assertNotNull(scene.getVisualSceneInstance());
scene.setVisualSceneInstance(null);
assertNull(scene.getVisualSceneInstance());
}