### Question:
ChartOptions extends HashMap<String, Object> implements IClusterable, JavaScriptable, Jsonable { public void setName(String name) { this.name = name; } ChartOptions();  ChartOptions(String name);  ChartOptions(ChartOptions m);  ChartOptions(String name, Map<? extends String, ? extends Object> m); static ChartOptions fromJson(String json); static ChartOptions fromJson(JSONObject json); String getName(); void setName(String name); @Override boolean equals(Object obj); @Override int hashCode(); ChartOptions getModelObjects(); @Override String toJavaScript(); String toJavaScript(String varname); @Override JSONObject toJSON();  }### Answer:
@Test public void testSetName() { String name = "fred"; ChartOptions instance = new ChartOptions(); instance.setName(name); assertEquals(name, instance.getName()); }