### Question:
Orbit { public Point getXYZ(final double azTime) { if (azTime < time[0] || azTime > time[numStateVectors - 1]) { logger.warn("getXYZ() interpolation at: " + azTime + " is outside interval time axis: (" + time[0] + ", " + time[numStateVectors - 1] + ")."); } Point satelliteXYZPosition = new Point(); double azTimeNormal = (azTime - time[time.length / 2]) / 10; satelliteXYZPosition.x = PolyUtils.polyVal1D(azTimeNormal, coeff_X); satelliteXYZPosition.y = PolyUtils.polyVal1D(azTimeNormal, coeff_Y); satelliteXYZPosition.z = PolyUtils.polyVal1D(azTimeNormal, coeff_Z); return satelliteXYZPosition; } Orbit();  Orbit(double[] timeVector, double[] xVector, double[] yVector, double[] zVector, int degree);  Orbit(double[][] stateVectors, int degree);  Orbit(MetadataElement nestMetadataElement, int degree); void parseOrbit(File file); void setOrbit(double[][] stateVectors); void computeCoefficients(int degree); Point lph2xyz(final double line, final double pixel, final double height, final SLCImage slcimage); synchronized Point lp2xyz(final Point sarPixel, final SLCImage slcimage); synchronized Point lp2xyz(final double line, final double pixel, final SLCImage slcimage); synchronized Point xyz2orb(final Point pointOnEllips, final SLCImage slcimage); synchronized Point lp2orb(final Point sarPixel, final SLCImage slcimage); synchronized Point xyz2t(final Point pointOnEllips, final SLCImage slcimage); synchronized Point xyz2lp(final Point pointOnEllips, final SLCImage slcimage); synchronized Point ell2lp(final double[] phi_lam_height, final SLCImage slcimage); synchronized double[] lp2ell(final Point sarPixel, final SLCImage slcimage); synchronized double[] lph2ell(final double line, final double pixel, final double height, final SLCImage slcimage); synchronized double[] lph2ell(final Point sarPixel, final SLCImage slcimage); synchronized double[] lph2ell(final Point sarPixel, final double height, final SLCImage slcimage); @Deprecated void computeBaseline(); Point getXYZ(final double azTime); Point getXYZDot(double azTime); Point getXYZDotDot(final double azTime); double eq1_Doppler(final Point satVelocity, final Point pointOnEllips); double eq2_Range(final Point pointEllipsSat, final double rgTime); double eq3_Ellipsoid(final Point pointOnEllips, final double height); double eq3_Ellipsoid(final Point pointOnEllips); double eq3_Ellipsoid(final Point pointOnEllips, final double semiMajorA, final double semiMinorB, final double height); Point[][] dumpOrbit(); void showOrbit(); int getNumStateVectors(); double[] getTime(); double[] getData_X(); double[] getData_Y(); double[] getData_Z(); double[] getCoeff_X(); double[] getCoeff_Y(); double[] getCoeff_Z(); int getPoly_degree(); void setPoly_degree(int degree); boolean isInterpolated(); double computeEarthRadius(Point p, SLCImage metadata); double computeOrbitRadius(Point p, SLCImage metadata); double computeAzimuthDelta(Point sarPixel, SLCImage metadata); double computeAzimuthResolution(Point sarPixel, SLCImage metadata);  }### Answer:
@Test public void testGetXYZ() throws Exception { Assert.assertArrayEquals(satellitePos_EXPECTED.toArray(), orbit_ACTUAL.getXYZ(pixelTime_EXPECTED.y).toArray(), eps_06); }
@Test public void testPointByReference_getXYZ() throws Exception { Point t1 = orbit_ACTUAL.getXYZ(1); Point t2 = orbit_ACTUAL.getXYZ(2); Assert.assertFalse(t1 == t2); }