JGrafana { public GrafanaDashboard getDashboard() { return dashboard; } JGrafana(String title);  JGrafana(String title, String uuid);  JGrafana(GrafanaDashboard dashboard); static JGrafana parse(String dashboard); GrafanaDashboard getDashboard(); GrafanaPanel addPanel(PanelType type, String title, String expr); boolean removePanelByTitle(String title); GrafanaPanel addPanel(PanelType type, String title, String expr, SortedMap<Integer, GrafanaFunction> functions, List<YAxis> yaxes); GrafanaPanel getPanelByTitle(String title); JGrafana setTitle(String title); JGrafana addLink(String title, String url); void writeToFile(File file); String serialize();  }
@Test public void givenANewContextWhenANewJGrafanaObjectIsCreatedThenTheDefaultObjectIsCreated() { JGrafana grafanaObj = new JGrafana("My Dashboard"); assertEquals(0, grafanaObj.getDashboard().panels.size()); }