@Test
public void testUserMaximumExtent() throws Exception {

	UserMaximumExtentRequest request = new UserMaximumExtentRequest();
	request.setCrs(CRS);
	request.setLayerIds(new String[] { LAYER_ID });
	UserMaximumExtentResponse response = (UserMaximumExtentResponse) dispatcher.execute(
			UserMaximumExtentRequest.COMMAND, request, null, "en");
	if (response.isError()) {
		response.getErrors().get(0).printStackTrace();
	}
	Assert.assertFalse(response.isError());
	Bbox bounds = response.getBounds();
	Assert.assertNotNull(bounds);
	Assert.assertEquals(-1.0, bounds.getX(), DOUBLE_TOLERANCE);
	Assert.assertEquals(-1.0, bounds.getY(), DOUBLE_TOLERANCE);
	Assert.assertEquals(1.0, bounds.getMaxX(), DOUBLE_TOLERANCE);
	Assert.assertEquals(1.0, bounds.getMaxY(), DOUBLE_TOLERANCE);
}