public void testReproject1() {
JDBCAccess access = getJDBCAccess();
ImageLevelInfo li = access.getLevelInfo(access.getNumOverviews());
GeneralEnvelope env = new GeneralEnvelope(new double[] {
li.getExtentMaxY() - DELTA, li.getExtentMaxX() - DELTA },
new double[] { li.getExtentMaxY() + DELTA,
li.getExtentMaxX() + DELTA });
try {
env.setCoordinateReferenceSystem(SOURCE);
MathTransform t = CRS.findMathTransform(SOURCE, TARGET);
GeneralEnvelope tenv = CRS.transform(t, env);
// GeneralEnvelope tenv=new GeneralEnvelope(new
// Rectangle2D.Double(300000,300000,400000,400000));
// TARGET=CRS.decode("EPSG:31287");
tenv.setCoordinateReferenceSystem(TARGET);
imageMosaic("transparent_reprojected", getConfigUrl(), tenv, 400,
400, Color.BLACK,Color.BLACK, null);
} catch (Exception e) {
Assert.fail(e.getMessage());
}