LdapPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions(LdapRealm.class, LdapSettingsManager.class, LdapAutodiscovery.class); }  @Override void define(Context context);  }
@Test public void testGetExtensions() throws Exception { Plugin.Context context = mock(Plugin.Context.class); new LdapPlugin().define(context); verify(context).addExtensions(LdapRealm.class, LdapSettingsManager.class, LdapAutodiscovery.class); }