ApexPlugin extends SonarPlugin { @Override public List getExtensions() { return ImmutableList.of( Apex.class, ApexCpdMapping.class, ApexSquidSensor.class, ApexRulesDefinition.class, ApexProfile.class, ApexCommonRulesDecorator.class, ApexCommonRulesEngine.class); }  @Override List getExtensions();  }
@Test public void testNumberOfExtensions() { List<Extension> extensions = apexPlugin.getExtensions(); assertThat(extensions.size(), is(7)); }