HawtioPlugin implements HawtioPluginMBean { public void setScripts(String[] scripts) { this.scripts = scripts; } HawtioPlugin(); void init(); void destroy(); void setName(String name); String getName(); void setContext(String context); String getContext(); void setDomain(String domain); String getDomain(); void setScripts(String[] scripts); void setScripts(String scripts); String[] getScripts();  }
@Test public void setScripts() { HawtioPlugin plugin = new HawtioPlugin(); plugin.setScripts(""); assertThat(plugin.getScripts().length, is(1)); assertThat(plugin.getScripts(), arrayContaining("")); plugin.setScripts("a,b,c"); assertThat(plugin.getScripts().length, is(3)); assertThat(plugin.getScripts(), arrayContaining("a", "b", "c")); }