I was trying to make it consistent with all of the other uses of assertArrayEquals which takes expected as the first parameter.  I can revert it.  I suspect it was written that way because the assertArrayEquals was passing the parameters backwards to assert.equal which was annoying because that caused the error message to be backwards.