@Theory public void testCopyAttributes(UnaryArithmeticFactory factory, RAbstractVector originalOperand) { RAbstractVector operand = originalOperand.copy(); // we have to e careful not to change mutable vectors RAbstractVector a = operand.copy(); if (a instanceof RShareable) { ((RShareable) a).incRefCount(); } RVector<?> aMaterialized = a.copy().materialize(); aMaterialized.setAttr("a", "a"); assertAttributes(executeArithmetic(factory, aMaterialized.copy()), "a"); }