  @Test
  public void testValidParsingCubic() {

    // Absolute coordinates
    VectorCommand cubicToCommand = VectorCommand.createVectorCommand("C1,2,3,4,5,6");
    Assert.assertTrue(cubicToCommand instanceof VectorCommand.CubicToCommand);
    Assert.assertEquals(VectorCommand.ArgFormat.ABSOLUTE, cubicToCommand.mArgFormat);
    Assert.assertEquals(6, cubicToCommand.mArgs.length);
    Assert.assertEquals(1, cubicToCommand.mArgs[0], 0);
    Assert.assertEquals(2, cubicToCommand.mArgs[1], 0);
    Assert.assertEquals(3, cubicToCommand.mArgs[2], 0);
    Assert.assertEquals(4, cubicToCommand.mArgs[3], 0);
    Assert.assertEquals(5, cubicToCommand.mArgs[4], 0);
    Assert.assertEquals(6, cubicToCommand.mArgs[5], 0);

    // Relative coordinates
    cubicToCommand = VectorCommand.createVectorCommand("c7,8,9,10,11,12");
    Assert.assertTrue(cubicToCommand instanceof VectorCommand.CubicToCommand);
    Assert.assertEquals(VectorCommand.ArgFormat.RELATIVE, cubicToCommand.mArgFormat);
    Assert.assertEquals(6, cubicToCommand.mArgs.length);
    Assert.assertEquals(7, cubicToCommand.mArgs[0], 0);
    Assert.assertEquals(8, cubicToCommand.mArgs[1], 0);
    Assert.assertEquals(9, cubicToCommand.mArgs[2], 0);
    Assert.assertEquals(10, cubicToCommand.mArgs[3], 0);
    Assert.assertEquals(11, cubicToCommand.mArgs[4], 0);
    Assert.assertEquals(12, cubicToCommand.mArgs[5], 0);
  }