WMTSClient extends AbstractOWSClient<WMTSCapabilitiesAdapter> { public TileMatrixSet getTileMatrixSet( String tileMatrixSetId ) throws XMLStreamException { List<TileMatrixSet> tileMatrixSets = getTileMatrixSets(); for ( TileMatrixSet tileMatrixSet : tileMatrixSets ) { if ( tileMatrixSet.getIdentifier().equals( tileMatrixSetId ) ) { return tileMatrixSet; } } return null; } WMTSClient( URL capaUrl, OwsHttpClient httpClient ); List<Layer> getLayers(); Layer getLayer( String layerId ); List<TileMatrixSet> getTileMatrixSets(); TileMatrixSet getTileMatrixSet( String tileMatrixSetId ); GetTileResponse getTile( GetTile request ); GetFeatureInfoResponse getFeatureInfo( GetFeatureInfo request );  }
@Test public void testGetTileMatrixSet() throws XMLStreamException { TileMatrixSet matrixSet = client.getTileMatrixSet( "Satellite_Provo" ); Assert.assertNotNull( matrixSet ); }
@Test public void testGetTileMatrixSetNotExists() throws XMLStreamException { TileMatrixSet matrixSet = client.getTileMatrixSet( "Satellite_PROVO" ); Assert.assertNull( matrixSet ); }