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