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: externalIDPManager = new ExternalIDPManagerImpl()
test_class.modifier: private
test_class.original_string: private ExternalIDPManagerImpl externalIDPManager = new ExternalIDPManagerImpl();
test_class.type: ExternalIDPManagerImpl
test_class.var_name: externalIDPManager
test_class.file: oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/ExternalIDPManagerImplTest.java
test_class.identifier: ExternalIDPManagerImplTest
test_case.body: @Test
      public void testGetProvider() {
          assertNull(externalIDPManager.getProvider("test"));
          assertNull(externalIDPManager.getProvider("unknown"));
  
          ExternalIdentityProvider provider = when(mock(ExternalIdentityProvider.class).getName()).thenReturn("test").getMock();
          context.registerService(ExternalIdentityProvider.class, provider);
  
          assertSame(provider, externalIDPManager.getProvider("test"));
          assertNull(externalIDPManager.getProvider("unknown"));
      }
test_case.class_method_signature: ExternalIDPManagerImplTest.testGetProvider()
test_case.full_signature: @Test public void testGetProvider()
test_case.identifier: testGetProvider
test_case.invocations: assertNull getProvider assertNull getProvider getMock thenReturn when getName mock registerService assertSame getProvider assertNull getProvider
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetProvider()
focal_class.file: oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/ExternalIDPManagerImpl.java
focal_class.identifier: ExternalIDPManagerImpl
focal_class.interfaces: implements ExternalIdentityProviderManager
focal_class.class_method_signature: ExternalIDPManagerImpl.ExternalIDPManagerImpl()
focal_class.full_signature: @SuppressWarnings("UnusedDeclaration") public  ExternalIDPManagerImpl()
focal_class.identifier: ExternalIDPManagerImpl
focal_class.modifiers: @SuppressWarnings("UnusedDeclaration") public
focal_class.parameters: ()
focal_class.signature:  ExternalIDPManagerImpl()
focal_class.class_method_signature: ExternalIDPManagerImpl.ExternalIDPManagerImpl(Whiteboard whiteboard)
focal_class.full_signature: public  ExternalIDPManagerImpl(Whiteboard whiteboard)
focal_class.identifier: ExternalIDPManagerImpl
focal_class.modifiers: public
focal_class.parameters: (Whiteboard whiteboard)
focal_class.signature:  ExternalIDPManagerImpl(Whiteboard whiteboard)
focal_class.class_method_signature: ExternalIDPManagerImpl.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: ExternalIDPManagerImpl.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: ExternalIDPManagerImpl.getProvider(@NotNull String name)
focal_class.full_signature: @Override public ExternalIdentityProvider getProvider(@NotNull String name)
focal_class.identifier: getProvider
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: ExternalIdentityProvider
focal_class.signature: ExternalIdentityProvider getProvider(@NotNull String name)
focal_class.superclass: extends AbstractServiceTracker<ExternalIdentityProvider>
focal_method.body: @Override
      public ExternalIdentityProvider getProvider(@NotNull String name) {
          for (ExternalIdentityProvider provider: getServices()) {
              if (name.equals(provider.getName())) {
                  return provider;
              }
          }
          return null;
      }
focal_method.class_method_signature: ExternalIDPManagerImpl.getProvider(@NotNull String name)
focal_method.full_signature: @Override public ExternalIdentityProvider getProvider(@NotNull String name)
focal_method.identifier: getProvider
focal_method.invocations: getServices equals getName
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull String name)
focal_method.return: ExternalIdentityProvider
focal_method.signature: ExternalIdentityProvider getProvider(@NotNull String name)