### Question:
Vector3f extends AVector3 { public static Vector3f fromXYZ(final double x, final double y, final double z) { return new Vector3f(x, y, z); } private  Vector3f(); private  Vector3f(final double x, final double y, final double z); static Vector3f fromXYZ(final double x, final double y, final double z); static Vector3f from2d(final IVector2 xy, final double z); static Vector3f copy(final IVector3 original); static Vector3f zero(); @Override IVector3 copy(); @Override IVector3 getXYZVector(); @Override double x(); @Override double y(); @Override double z(); static final Vector3f X_AXIS; static final Vector3f Y_AXIS; static final Vector3f Z_AXIS; static final Vector3f ZERO_VECTOR; static final Vector3f UNINITIALIZED; }### Answer:
@Test public void testEquals() { EqualsVerifier.forClass(Vector3f.class) .suppress(Warning.NONFINAL_FIELDS) .verify(); assertThat(Vector3.fromXYZ(42, 1337, 3.14)).isEqualTo(Vector3f.fromXYZ(42, 1337, 3.14)); }
@Test public void testFromXYZ() { assertThat(Vector3f.fromXYZ(42, 1337, 3.14)).isEqualTo(Vector3.fromXYZ(42, 1337, 3.14)); assertThat(Vector3f.fromXYZ(42, 1337, 3.14)).isNotEqualTo(Vector3.zero()); }
@Test public void testGetXYVector() { assertThat(Vector3f.fromXYZ(42, 1337, 3.14).getXYVector()).isEqualTo(Vector2.fromXY(42, 1337)); }