### Question:
Vectors { public static RealVector of(double... values) { return new ArrayRealVector(values, false); } private  Vectors(); static RealVector of(double... values); static RealVector dense(int dimension); static SparseRealVector sparse(int dimension); static SparseRealVector sparse(int dimension, int expectedSize); static RealVector like(RealVector vector);  }### Answer:
@Test public void testOf() { RealVector of = Vectors.of(1.0, -2.0, 7.0); assertEquals(3, of.getDimension()); assertEquals(1.0, of.getEntry(0)); assertEquals(-2.0, of.getEntry(1)); assertEquals(7.0, of.getEntry(2)); }