@Test
public void testNullReproject() throws Exception {

    // try to reproject to the target CRS, used to fail due to a missing check in 
    // ContentFeatureSource
    CoordinateReferenceSystem targetCRS = loadFeatures(STATE_POP, Query.ALL).getSchema().getCoordinateReferenceSystem();
    Query q = new Query(Query.ALL);
    q.setCoordinateSystemReproject(targetCRS);
    // used to get an exception here
    loadFeatures(STATE_POP, q);
}