### Question:
CategoricalVariableType extends AbstractEntity implements VariableType { public BasicMeasurement buildMeasurement() { return new FrequencyMeasurement(d_cats, new HashMap<String, Integer>()); } CategoricalVariableType();  CategoricalVariableType(List<String> cats); BasicMeasurement buildMeasurement(); BasicMeasurement buildMeasurement(int size); String getType(); Set<? extends Entity> getDependencies(); ObservableList<String> getCategories(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final String PROPERTY_CATEGORIES; }### Answer:
@Test public void testBuildMeasurement() { assertEntityEquals(new FrequencyMeasurement(d_cats, new HashMap<String, Integer>()), d_var.buildMeasurement(30)); assertEntityEquals(new FrequencyMeasurement(d_cats, new HashMap<String, Integer>()), d_var.buildMeasurement()); assertNotNull(d_var.buildMeasurement()); }