### Question:
GeoPackageDataTypeInfo extends DefaultDataTypeInfo { public GeoPackageLayer getLayer() { return myLayer; } GeoPackageDataTypeInfo(Toolbox tb, GeoPackageLayer layer, String typeKey); @Override boolean equals(Object obj); GeoPackageLayer getLayer(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testGetLayer() { EasyMockSupport support = new EasyMockSupport(); Toolbox toolbox = createToolbox(support); support.replayAll(); GeoPackageLayer layer = new GeoPackageLayer("thePackName", "c:\\somehost.gpkg", "a layer", LayerType.FEATURE, 100); GeoPackageDataTypeInfo dataType = new GeoPackageDataTypeInfo(toolbox, layer, "theKey"); assertEquals(layer, dataType.getLayer()); assertEquals(layer.getPackageFile(), dataType.getSourcePrefix()); assertEquals(layer.getName(), dataType.getTypeName()); assertEquals(layer.getName(), dataType.getDisplayName()); assertEquals("theKey", dataType.getTypeKey()); assertFalse(dataType.providerFiltersMetaData()); support.verifyAll(); }