ZapWidget extends AbstractRubyTemplate implements RubyRailsWidget { @Override protected String getTemplatePath() { return "/org/sonar/zaproxy/ui/widget.html.erb"; }  @Override String getId(); @Override String getTitle();  }
@Test public void test_rails_template() throws Exception { ZapWidget widget = new ZapWidget(); assertThat(widget.getClass().getResource(widget.getTemplatePath())) .as("Template not found: " + widget.getTemplatePath()) .isNotNull(); }