### Question:
XYZDataTypeInfo extends DefaultDataTypeInfo { public XYZTileLayerInfo getLayerInfo() { return myLayerInfo; } XYZDataTypeInfo(Toolbox tb, XYZTileLayerInfo layerInfo); @Override boolean equals(Object obj); XYZTileLayerInfo getLayerInfo(); @Override int hashCode();  }### Answer:
@Test public void test() { XYZTileLayerInfo layerInfo = new XYZTileLayerInfo("name", "displayName", Projection.EPSG_4326, 1, false, 0, new XYZServerInfo("serverName", "http: XYZDataTypeInfo dataType = new XYZDataTypeInfo(null, layerInfo); assertEquals("name", dataType.getTypeName()); assertEquals("displayName", dataType.getDisplayName()); assertEquals("http: assertEquals("http: assertEquals(layerInfo, dataType.getLayerInfo()); assertTrue(dataType.isVisible()); }
@Test public void testInvisible() { XYZTileLayerInfo layerInfo = new XYZTileLayerInfo("name", "displayName", Projection.EPSG_4326, 1, false, 0, new XYZServerInfo("serverName", "http: layerInfo.setVisible(false); XYZDataTypeInfo dataType = new XYZDataTypeInfo(null, layerInfo); assertEquals("name", dataType.getTypeName()); assertEquals("displayName", dataType.getDisplayName()); assertEquals("http: assertEquals("http: assertEquals(layerInfo, dataType.getLayerInfo()); assertFalse(dataType.isVisible()); }