}
@Test
public void testAddTransformations() {
SVGTransformList t = new SVGTransformList();
t.addTransformations(null);
assertTrue(t.isEmpty());
t.addTransformations(""); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("dsqdsq"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("translate"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("translate(,)"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("translate( )"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("scale( 3"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("rotate(a)"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("rotate(1)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("rotate(1 , 2 4)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("skewY( 1)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("skewX(1)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("scale(1 1)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("translate(1 ,1)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("translate(1 1) ,"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("matrix(1 2 3)"); //$NON-NLS-1$
assertTrue(t.isEmpty());
t.addTransformations("matrix(1 2 3 ,4 ,5 ,6)"); //$NON-NLS-1$
assertFalse(t.isEmpty());
t.clear();
t.addTransformations("matrix(1 2 3 ,4 ,5 ,6) translate(2 2)"); //$NON-NLS-1$
assertEquals(2, t.size());
t.clear();
t.addTransformations("rotate ( 2, 3 5), \n skewX( 2 \n)"); //$NON-NLS-1$
assertEquals(2, t.size());
t.clear();
t.addTransformations("rotate ( 2, 3 5)scale( 2)"); //$NON-NLS-1$
assertEquals(2, t.size());
t.clear();
t.addTransformations("rotate ( 2, 3 5), \n skewX( 2 \n)"); //$NON-NLS-1$
t.addTransformations("rotate ( 2, 3 5)scale( 2)"); //$NON-NLS-1$
assertEquals(4, t.size());
}