@Test(expected=IllegalArgumentException.class)
public void createGrid_MisMatchedCRS() {
try {
ReferencedEnvelope env = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
CoordinateReferenceSystem otherCRS = CRS.parseWKT(getSydneyWKT());
GridFeatureBuilder builder = new DefaultGridFeatureBuilder(otherCRS);
Oblongs.createGrid(env, 0, 1.0, builder);
} catch (FactoryException ex) {
throw new IllegalStateException("Error in test code");