### Question:
Vector { public int getMaxRows() { return values.length; } Vector(final int length);  Vector(final Vector A);  Vector(final double[] values); Vector plus(final Vector B); Vector minus(final Vector B); double dotProduct(final Vector B); Vector multi(final double alpha); void setValue(final int index, final double value); double getValue(final int index); void addValue(final int index, final double value); int getMaxRows(); @Override String toString();  }### Answer:
@Test public void v2_getRow_FourRows_CorrectResult() { final Vector A = new Vector(4); final int result = A.getMaxRows(); Assert.assertEquals(4, result, 0); }