### Question:
ChartOption extends JSONObject_ { public static ChartOption getDefaultChartOption(JSONObject defaultOption) throws JSONException { ChartOption o; if (defaultOption != null) o = new ChartOption(defaultOption); else o = new ChartOption(); if (o.getChart().getDefaultSeriesType() == null) o.getChart().setDefaultSeriesType(SeriesType.line); if (!o.getCredits().has("enabled")) o.getCredits().setEnabled(false); if (!o.getLegend().has("enabled")) o.getLegend().setEnabled(false); return o; } ChartOption();  ChartOption(JSONObject defaultOption); Chart getChart(); Title getTitle(); Title getSubtitle(); Axis getXAxis(); Axis getYAxis(); Legend getLegend(); Credits getCredits(); JSONArray getSeries(); static ChartOption getDefaultChartOption(JSONObject defaultOption);  }### Answer:
@Test public void testGetDefaultChartOption() throws Exception { ChartOption o = ChartOption.getDefaultChartOption(null); System.out.println(o.toString()); }