WmsTileFactory implements TileFactory { public void setImageFormat(String imageFormat) { this.imageFormat = imageFormat; } WmsTileFactory(String serviceAddress, String wmsVersion, String layerNames, String styleNames);  WmsTileFactory(WmsLayerConfig config); String getServiceAddress(); void setServiceAddress(String serviceAddress); String getWmsVersion(); void setWmsVersion(String wmsVersion); String getLayerNames(); void setLayerNames(String layerNames); String getStyleNames(); void setStyleNames(String styleNames); String getCoordinateSystem(); void setCoordinateSystem(String coordinateSystem); String getImageFormat(); void setImageFormat(String imageFormat); boolean isTransparent(); void setTransparent(boolean transparent); String getTimeString(); void setTimeString(String timeString); @Override Tile createTile(Sector sector, Level level, int row, int column); String urlForTile(Sector sector, int width, int height);  }
@Test public void testSetImageFormat() { String updatedImageFormat = "image/jpeg"; WmsLayerConfig layerConfig = new WmsLayerConfig(COMMON_SERVICE_ADDRESS, COMMON_LAYER_NAMES); WmsTileFactory standardWmsMapFactory = new WmsTileFactory(layerConfig); standardWmsMapFactory.setImageFormat(updatedImageFormat); String imageFormat = standardWmsMapFactory.getImageFormat(); assertEquals("update image format", updatedImageFormat, imageFormat); }