final LookAtTransform lookAtTransform = (LookAtTransform) transforms
.get(0);
assertSame(doc, lookAtTransform.getDocument());
assertSame(rootNode, lookAtTransform.getParent());
assertEquals("node-1-lookat", lookAtTransform.getSid());
assertEquals(new MutableVector3d(1, 2, 3), lookAtTransform.getEye());
assertEquals(new MutableVector3d(4, 5, 6), lookAtTransform.getInterest());
assertEquals(new MutableVector3d(7, 8, 9), lookAtTransform.getUp());
// Check matrix transformation
final MatrixTransform matrixTransform = (MatrixTransform) transforms
.get(1);
assertSame(doc, matrixTransform.getDocument());
assertSame(rootNode, matrixTransform.getParent());
assertEquals("node-1-matrix", matrixTransform.getSid());
assertEquals(new MutableMatrix4d(0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10,
14, 3, 7, 11, 15), matrixTransform.getMatrix());
// Check rotate transformation
final RotateTransform rotateTransform = (RotateTransform) transforms
.get(2);
assertSame(doc, rotateTransform.getDocument());
assertSame(rootNode, rotateTransform.getParent());
assertEquals("node-1-rotate", rotateTransform.getSid());
assertEquals(new MutableVector3d(1, 2, 3), rotateTransform.getAxis());
assertEquals(4, rotateTransform.getAngle(), 0.001);
// Check scale transformation
final ScaleTransform scaleTransform = (ScaleTransform) transforms.get(3);
assertSame(doc, scaleTransform.getDocument());
assertSame(rootNode, scaleTransform.getParent());
assertEquals("node-1-scale", scaleTransform.getSid());
assertEquals(new MutableVector3d(4, 5, 6), scaleTransform.getScaling());
// Check skew transformation
final SkewTransform skewTransform = (SkewTransform) transforms.get(4);
assertSame(doc, skewTransform.getDocument());
assertSame(rootNode, skewTransform.getParent());
assertEquals("node-1-skew", skewTransform.getSid());
assertEquals(1, skewTransform.getAngle(), 0.001);
assertEquals(new MutableVector3d(2, 3, 4), skewTransform.getRotationAxis());
assertEquals(new MutableVector3d(5, 6, 7), skewTransform.getTranslationAxis());
// Check translate transformation
final TranslateTransform translateTransform = (TranslateTransform) transforms.get(5);
assertSame(doc, translateTransform.getDocument());
assertSame(rootNode, translateTransform.getParent());
assertEquals("node-1-translate", translateTransform.getSid());
assertEquals(new MutableVector3d(1, 2, 3), translateTransform.getTranslation());
// Check sub nodes
final Nodes nodes = rootNode.getNodes();
assertEquals(2, nodes.size());