@Test
public void testParseLayer()
                        throws Exception {

    XMLStreamReader xmlStream = getResourceXmlStreamReader( "wmts100_layer.xml" );
    assertEquals( START_ELEMENT, xmlStream.getEventType() );
    assertEquals( new QName( WMTS_100_NS, "Layer" ), xmlStream.getName() );
    Layer layer = adapter.parseLayer( xmlStream );
    assertEquals( END_ELEMENT, xmlStream.getEventType() );
    assertEquals( new QName( WMTS_100_NS, "Layer" ), xmlStream.getName() );
    assertEquals( "utah_ortho", layer.getIdentifier() );
    List<Style> styles = layer.getStyles();
    assertEquals( 1, styles.size() );
    Style style = styles.get( 0 );
    assertEquals( "default", style.getIdentifier() );
    assertEquals( true, style.isDefault() );
    List<String> formats = layer.getFormats();
    assertEquals( 1, formats.size() );
    assertEquals( "image/png", formats.get( 0 ) );
    List<String> tileMatrixSets = layer.getTileMatrixSets();
    assertEquals( 1, tileMatrixSets.size() );
    assertEquals( "Satellite_Provo", tileMatrixSets.get( 0 ) );
}