### Question:
WFSDataType extends AbstractServerDataTypeInfo { public Map<String, Class<?>> getProperties() { if (getMetaDataInfo() != null) { return getMetaDataInfo().getKeyClassTypeMap(); } return Collections.emptyMap(); } @SuppressWarnings("PMD.ConstructorCallsOverridableMethod")  WFSDataType(Toolbox tb, String serverName, String layerKey, String name, String title, MetaDataInfo properties,
            LayerConfiguration stateConfiguration); protected  WFSDataType(Toolbox pToolbox, String pServerName, String pLayerKey, String pLayerTypeName, String pDisplayTitle,
            LayerConfiguration pStateConfiguration, boolean pFiltersData); @Override void changeTimeColumns(); boolean chooseTimeColumns(Object source); @Override @SuppressWarnings("PMD.UselessOverridingMethod") boolean equals(Object obj); @Override Collection<String> getNamesForComparison(); @Override OrderParticipantKey getOrderKey(); OGCOutputFormat getOutputFormat(); Map<String, Class<?>> getProperties(); LayerConfiguration getStateConfiguration(); String getWFSVersion(); @Override void handleSyncChangeEvent(SyncChangeType type, Object source); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); boolean isAnimationSensitive(); @Override // from "Model" interface boolean isDisplayable(); boolean isLatBeforeLon(); @Override boolean isTimeColumnChangeable(); boolean isTimeColumnChosen(); boolean isTimeless(); void setActivationListener(ActivationListener activationListener); void setAnimationSensitive(boolean isAnimationSensitive); @Override // from "Model" interface void setDisplayable(boolean displayable, Object source); void setLatBeforeLon(boolean isLatBeforeLon); void setOutputFormat(OGCOutputFormat format); @Override void setParent(DataGroupInfo parent); boolean setPreferredTimeColumns(Object source); void setTimeColumns(TimeColumns columns, Object source); @Override void setTimeExtents(TimeExtents extents, boolean syncTime); @Override void setTypeSync(ServerDataTypeSync typeSync); @Override void setVisible(boolean visible, Object source); void setWFSVersion(String wfsVersion); void showConfig(Window parent); void showContent(Window parent); @Override String toString(); static final PropertyDescriptor<WFSDataType> WFS_PROPERTY_DESCRIPTOR; }### Answer:
@Test public void testGetProperties() { Map<String, Class<?>> expected = new HashMap<>(); expected.put(ALTITUDE_KEY, Double.class); expected.put(ELEVATION_KEY, Double.class); Map<String, Class<?>> properties = getNewType("type", expected).getProperties(); assertEquals(expected, properties); }