DefaultSyncHandler implements SyncHandler { @SuppressWarnings("UnusedDeclaration") @Activate private void activate(Map<String, Object> properties) { ConfigurationParameters cfg = ConfigurationParameters.of(properties); config = DefaultSyncConfigImpl.of(cfg); } @SuppressWarnings("UnusedDeclaration")  DefaultSyncHandler();  DefaultSyncHandler(DefaultSyncConfig config); @NotNull @Override String getName(); @NotNull @Override SyncContext createContext(@NotNull ExternalIdentityProvider idp, @NotNull UserManager userManager,
                                     @NotNull ValueFactory valueFactory); @Override SyncedIdentity findIdentity(@NotNull UserManager userManager, @NotNull String id); @Override boolean requiresSync(@NotNull SyncedIdentity identity); @NotNull @Override Iterator<SyncedIdentity> listIdentities(@NotNull UserManager userManager);  }
@Test public void testActivate() { DefaultSyncHandler handler = new DefaultSyncHandler(); Map<String,Object> props = ImmutableMap.of(DefaultSyncConfigImpl.PARAM_NAME, "testName"); context.registerInjectActivateService(handler, props); assertEquals("testName", handler.getName()); }