### Question:
CategoricalVariableType extends AbstractEntity implements VariableType { public ObservableList<String> getCategories() { return d_cats; } 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 testCategories() { assertEquals(d_cats, d_var.getCategories()); d_var.getCategories().add("Trans gender"); assertEquals(2, d_cats.size()); assertEquals(3, d_var.getCategories().size()); }