test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.file: everrest-core/src/test/java/org/everrest/core/tools/DependencySupplierImplTest.java
test_class.identifier: DependencySupplierImplTest
test_case.body: @Test
      public void providesInstanceProviderByParameter() throws Exception {
          DependencySupplierImpl dependencySupplier = createDependencySupplier("foo", -1);
          ParameterizedType stringProviderParameterizedType = newParameterizedType(Provider.class, String.class);
  
          Object instance = dependencySupplier.getInstance(createParameter(Provider.class, stringProviderParameterizedType, null));
  
          assertTrue(
                  String.format("Instance of javax.inject.Provider expected but %s found", instance == null ? "null" : instance.getClass()),
                  instance instanceof Provider);
          assertEquals("foo", ((Provider)instance).get());
      }
test_case.class_method_signature: DependencySupplierImplTest.providesInstanceProviderByParameter()
test_case.full_signature: @Test public void providesInstanceProviderByParameter()
test_case.identifier: providesInstanceProviderByParameter
test_case.invocations: createDependencySupplier newParameterizedType getInstance createParameter assertTrue format getClass assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void providesInstanceProviderByParameter()
focal_class.declarator: dependencies = new HashMap<Class<?>, Object>()
focal_class.modifier: private final
focal_class.original_string: private final Map<Class<?>, Object> dependencies = new HashMap<Class<?>, Object>();
focal_class.type: Map<Class<?>, Object>
focal_class.var_name: dependencies
focal_class.file: everrest-core/src/main/java/org/everrest/core/tools/DependencySupplierImpl.java
focal_class.identifier: DependencySupplierImpl
focal_class.class_method_signature: DependencySupplierImpl.DependencySupplierImpl()
focal_class.full_signature: public  DependencySupplierImpl()
focal_class.identifier: DependencySupplierImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DependencySupplierImpl()
focal_class.class_method_signature: DependencySupplierImpl.DependencySupplierImpl(Class<? extends Annotation> injectAnnotation)
focal_class.full_signature: public  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation)
focal_class.identifier: DependencySupplierImpl
focal_class.modifiers: public
focal_class.parameters: (Class<? extends Annotation> injectAnnotation)
focal_class.signature:  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation)
focal_class.class_method_signature: DependencySupplierImpl.addInstance(Class<?> key, Object instance)
focal_class.full_signature: public void addInstance(Class<?> key, Object instance)
focal_class.identifier: addInstance
focal_class.modifiers: public
focal_class.parameters: (Class<?> key, Object instance)
focal_class.return: void
focal_class.signature: void addInstance(Class<?> key, Object instance)
focal_class.class_method_signature: DependencySupplierImpl.getInstance(Class<?> type)
focal_class.full_signature: @Override public Object getInstance(Class<?> type)
focal_class.identifier: getInstance
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type)
focal_class.return: Object
focal_class.signature: Object getInstance(Class<?> type)
focal_class.superclass: extends BaseDependencySupplier
focal_method.body: @Override
      public Object getInstance(Class<?> type) {
          return dependencies.get(type);
      }
focal_method.class_method_signature: DependencySupplierImpl.getInstance(Class<?> type)
focal_method.full_signature: @Override public Object getInstance(Class<?> type)
focal_method.identifier: getInstance
focal_method.invocations: get
focal_method.modifiers: @Override public
focal_method.parameters: (Class<?> type)
focal_method.return: Object
focal_method.signature: Object getInstance(Class<?> type)