DoubleVector implements java.io.Serializable { public double[] getArrayCopy() { return Doubles.concat(this.doubleArray); } DoubleVector();  DoubleVector(double[] toCopy);  DoubleVector(DoubleVector toCopy); double[] getArrayRef(); double[] getArrayCopy(); int numNonZeroEntries(); void setValue(int index, double value); void addToValue(int index, double value); double sumOfValues(); void getSingleLineDescription(StringBuilder out); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetArrayCopy() { double[] arrayRef; arrayRef = emptyVector.getArrayRef(); assertTrue(arrayRef != emptyVector.getArrayCopy()); assertThat(arrayRef, is(equalTo(emptyVector.getArrayCopy()))); arrayRef = array5Vector.getArrayRef(); assertTrue(arrayRef != array5Vector.getArrayCopy()); assertThat(arrayRef, is(equalTo(array5Vector.getArrayCopy()))); }