### Question:
WMSLayer extends AbstractModel implements ImageProvider<TileImageKey> { public WMSLayer(Builder builder) { checkConfig(builder); myDataTypeInfo = builder.getDataTypeInfo(); ArrayList<Vector2d> dimensions = new ArrayList<>(builder.getLayerCellDimensions()); Collections.sort(dimensions, Vector2d.LENGTH_COMPARATOR); myLayerCellDimensions = Collections.unmodifiableList(dimensions); myImageProvider = builder.getImageProvider(); myMinimumDisplaySize = builder.getMinimumDisplaySize(); myMaximumDisplaySize = builder.getMaximumDisplaySize(); myValidDuration = builder.getValidDuration(); } WMSLayer(Builder builder); static List<Vector2d> createQuadSplitLayerCellDimensions(int numLevels, double levelZeroSizeD); static PropertyAccessor<WMSLayer, String> getKeyAccessor(); Collection<GeographicBoundingBox> generateFixedGrid(int level); Collection<GeographicBoundingBox> generateGrid(int level); WMSLayerConfig getConfiguration(); @Override Image getImage(TileImageKey key); ImageProvider<TileImageKey> getImageProvider(); int getMaximumDisplaySize(); int getMinimumDisplaySize(); Vector2d getMinimumGridSize(); TimeSpan getTimeSpan(); String getTitle(); WMSDataTypeInfo getTypeInfo(); Duration getValidDuration(); boolean isTimeless(); @Override String toString(); static final PropertyDescriptor<WMSLayer> PROPERTY_DESCRIPTOR; static final PropertyDescriptor<String> KEY_PROPERTY_DESCRIPTOR; }### Answer:
@SuppressWarnings("unused") @Test public void testWMSLayer() { WMSLayerConfig conf = createLayerConfig(GeographicBoundingBox.WHOLE_GLOBE); WMSDataTypeInfo info = new WMSDataTypeInfo(getToolbox(), (Preferences)null, DATA_TYPE_HOST_NAME, new WMSLayerConfigurationSet(null, conf, null), conf.getLayerKey(), conf.getLayerTitle()); List<Vector2d> emptyList = Collections.emptyList(); WMSLayer.Builder builder = new WMSLayer.Builder(info); builder.setLayerCellDimensions(emptyList); new WMSLayer(builder); }