CheckstyleExtensionPlugin extends SonarPlugin { @Override public List<?> getExtensions() { return Arrays.asList(CheckstyleExtensionRulesDefinition.class); }  @Override List<?> getExtensions();  }
@Test public void testGetExtensions() { final CheckstyleExtensionPlugin plugin = new CheckstyleExtensionPlugin(); Assert.assertEquals("Incorrect number of plugin extensions", 1, plugin.getExtensions().size()); }