test_class.declarator: context = new OsgiContext()
test_class.modifier: @Rule
      public final
test_class.original_string: @Rule
      public final OsgiContext context = new OsgiContext();
test_class.type: OsgiContext
test_class.var_name: context
test_class.declarator: syncManager = new SyncManagerImpl()
test_class.modifier: private
test_class.original_string: private SyncManagerImpl syncManager = new SyncManagerImpl();
test_class.type: SyncManagerImpl
test_class.var_name: syncManager
test_class.file: oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/SyncManagerImplTest.java
test_class.identifier: SyncManagerImplTest
test_case.body: @Test
      public void testGetHandler() {
          assertNull(syncManager.getSyncHandler("test"));
          assertNull(syncManager.getSyncHandler("another"));
  
          SyncHandler syncHandler = when(mock(SyncHandler.class).getName()).thenReturn("test").getMock();
          context.registerService(SyncHandler.class, syncHandler);
  
          assertSame(syncHandler, syncManager.getSyncHandler("test"));
          assertNull(syncManager.getSyncHandler("another"));
      }
test_case.class_method_signature: SyncManagerImplTest.testGetHandler()
test_case.full_signature: @Test public void testGetHandler()
test_case.identifier: testGetHandler
test_case.invocations: assertNull getSyncHandler assertNull getSyncHandler getMock thenReturn when getName mock registerService assertSame getSyncHandler assertNull getSyncHandler
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetHandler()
focal_class.file: oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/SyncManagerImpl.java
focal_class.identifier: SyncManagerImpl
focal_class.interfaces: implements SyncManager
focal_class.class_method_signature: SyncManagerImpl.SyncManagerImpl()
focal_class.full_signature: @SuppressWarnings("UnusedDeclaration") public  SyncManagerImpl()
focal_class.identifier: SyncManagerImpl
focal_class.modifiers: @SuppressWarnings("UnusedDeclaration") public
focal_class.parameters: ()
focal_class.signature:  SyncManagerImpl()
focal_class.class_method_signature: SyncManagerImpl.SyncManagerImpl(Whiteboard whiteboard)
focal_class.full_signature: public  SyncManagerImpl(Whiteboard whiteboard)
focal_class.identifier: SyncManagerImpl
focal_class.modifiers: public
focal_class.parameters: (Whiteboard whiteboard)
focal_class.signature:  SyncManagerImpl(Whiteboard whiteboard)
focal_class.class_method_signature: SyncManagerImpl.activate(ComponentContext ctx)
focal_class.full_signature: @SuppressWarnings("UnusedDeclaration") @Activate private void activate(ComponentContext ctx)
focal_class.identifier: activate
focal_class.modifiers: @SuppressWarnings("UnusedDeclaration") @Activate private
focal_class.parameters: (ComponentContext ctx)
focal_class.return: void
focal_class.signature: void activate(ComponentContext ctx)
focal_class.class_method_signature: SyncManagerImpl.deactivate()
focal_class.full_signature: @SuppressWarnings("UnusedDeclaration") @Deactivate private void deactivate()
focal_class.identifier: deactivate
focal_class.modifiers: @SuppressWarnings("UnusedDeclaration") @Deactivate private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deactivate()
focal_class.class_method_signature: SyncManagerImpl.getSyncHandler(@NotNull String name)
focal_class.full_signature: @Override public SyncHandler getSyncHandler(@NotNull String name)
focal_class.identifier: getSyncHandler
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: SyncHandler
focal_class.signature: SyncHandler getSyncHandler(@NotNull String name)
focal_class.superclass: extends AbstractServiceTracker<SyncHandler>
focal_method.body: @Override
      public SyncHandler getSyncHandler(@NotNull String name) {
          for (SyncHandler handler: getServices()) {
              if (name.equals(handler.getName())) {
                  return handler;
              }
          }
          return null;
      }
focal_method.class_method_signature: SyncManagerImpl.getSyncHandler(@NotNull String name)
focal_method.full_signature: @Override public SyncHandler getSyncHandler(@NotNull String name)
focal_method.identifier: getSyncHandler
focal_method.invocations: getServices equals getName
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull String name)
focal_method.return: SyncHandler
focal_method.signature: SyncHandler getSyncHandler(@NotNull String name)