@Test
public void checkLayerCountTooLarge()
                        throws OWSException {

    thrown.expect( OWSException.class );
    thrown.expectMessage( "Too many layers requested. Maximum number of layers: 10" );
    checker.checkLayerCount( 100, 10 );
}