PAddOn extends PObject { @Override protected WidgetType getWidgetType() { return WidgetType.ADDON; } protected  PAddOn(); protected  PAddOn(final JsonObject args); boolean attach(final PWindow window); @Override boolean attach(final PWindow window, final PFrame frame); String getSignature(); void setLogLevel(final Level logLevel); void destroy();  }
@Test public void testInit() { final PAddOn widget = new PAddOn() { }; assertEquals(WidgetType.ADDON, widget.getWidgetType()); assertNotNull(widget.toString()); }