@Test(timeout = 2500)
public void testLineStylingSmallClipping()
                        throws Exception {

    BufferedImage img = new BufferedImage( 100, 100, TYPE_INT_ARGB );
    long time = currentTimeMillis();
    Graphics2D g = img.createGraphics();
    GeometryFactory geomFac = new GeometryFactory();
    Java2DRenderer r = new Java2DRenderer( g, img.getWidth(), img.getHeight(),
                                           geomFac.createEnvelope( new double[] { 0, 0 }, new double[] { 50d, 50d },
                                                                   mapcs ) );
    Point p1 = geomFac.createPoint( "testP1", 0, 0, null );
    Point p2 = geomFac.createPoint( "testP1", 10000000, 100000000, null );
    Points points = new PointsArray( p1, p2 );
    LineString lineString = geomFac.createLineString( "testLineString", null, points );
    LineStyling styling = new LineStyling();
    styling.stroke.color = red;
    styling.stroke.width = 5;
    styling.stroke.dasharray = new double[] { 15, 15, 17, 5 };
    r.render( styling, lineString );
    g.dispose();
    long time2 = currentTimeMillis();
    List<String> texts = new LinkedList<String>();
    texts.add( "line: default style line dashed with pattern 15, 15, 25, 5" );
    validateImage( img, time2 - time, "linestylingsmallclipping" );
}