try {
Fits file = new Fits("data/1904-66_TAN.fits");
ctan = WCSFactory.getCelestialWCS(file.getHDU(0).getHeader());
// test coordinates 10, 20
PixelCoordinates pixelCoordinates = new PixelCoordinates(10, 20);
CelestialCoordinates celCol = ctan
.getCelestialCoordinates(pixelCoordinates);
PixelCoordinates pc2 = ctan.getPixelCoordinates(celCol);
assertEquals(pixelCoordinates.getX(), pc2.getX(), 1.0 / 36000);
assertEquals(pixelCoordinates.getY(), pc2.getY(), 1.0 / 36000);
// test coordinates 290, -66
celCol = new CelestialRaDec(290, -66);
pixelCoordinates = ctan.getPixelCoordinates(celCol);
CelestialCoordinates cc2 = ctan
.getCelestialCoordinates(pixelCoordinates);