@Test
public void testWMS() throws Exception {

	ClientRasterLayerInfo cl1 = new ClientRasterLayerInfo();
	cl1.setServerLayerId(layerBluemarble.getId());
	RasterLayerRasterizingInfo rr1 = new RasterLayerRasterizingInfo();
	rr1.setCssStyle("opacity:0.75");
	cl1.getWidgetInfo().put(RasterLayerRasterizingInfo.WIDGET_KEY, rr1);
	DefaultMapContext mapContext = new DefaultMapContext();
	mapContext.setCoordinateReferenceSystem(layerBluemarble.getCrs());
	mapContext.getViewport().setCoordinateReferenceSystem(mapContext.getCoordinateReferenceSystem());
	mapContext.getViewport().setScreenArea(new Rectangle(1024, 512));
	mapContext.getViewport().setBounds(new ReferencedEnvelope(-180, 180, -90, 90, layerBluemarble.getCrs()));
	RasterDirectLayer layer = (RasterDirectLayer) layerFactory.createLayer(mapContext, cl1);
	new DirectLayerAssert(layer, mapContext).assertEqualImage("wms.png", writeImages, DELTA);
	mapContext.dispose();
}