### Question:
SLCImage { public double tr2pix(double rangeTime) { return 1.0 + (rsr2x * (rangeTime - tRange1)); } SLCImage();  SLCImage(MetadataElement element); void parseResFile(File resFileName); double pix2tr(double pixel); double pix2range(double pixel); double tr2pix(double rangeTime); double line2ta(double line); double ta2line(double azitime); Point lp2t(Point p); double getRadarWavelength(); Point getApproxRadarCentreOriginal(); GeoPos getApproxGeoCentreOriginal(); Point getApproxXYZCentreOriginal(); Window getCurrentWindow(); double getPRF(); double getAzimuthBandwidth(); int getCoarseOffsetP(); double gettRange1(); void settRange1(double tRange1); double getRangeBandwidth(); void setRangeBandwidth(double rangeBandwidth); double getRsr2x(); void setRsr2x(double rsr2x); void setCoarseOffsetP(int offsetP); void setCoarseOffsetL(int offsetL); int getMlAz(); void setMlAz(int mlAz); int getMlRg(); void setMlRg(int mlRg); double getMjd(); long getOrbitNumber(); double computeDeltaRange(double pixel); double computeDeltaRange(Point sarPixel); double computeRangeResolution(double pixel); double computeRangeResolution(Point sarPixel); public Doppler doppler; }### Answer:
@Test public void testTr2pix() throws Exception { double pixel_ACTUAL = master.tr2pix(rgTime_EXPECTED); Assert.assertEquals(pixel_EXPECTED, pixel_ACTUAL, eps05); }