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: whiteboard = new OsgiWhiteboard(context.bundleContext())
test_class.modifier: private final
test_class.original_string: private final OsgiWhiteboard whiteboard = new OsgiWhiteboard(context.bundleContext());
test_class.type: OsgiWhiteboard
test_class.var_name: whiteboard
test_class.file: oak-core-spi/src/test/java/org/apache/jackrabbit/oak/spi/toggle/FeatureToggleTest.java
test_class.identifier: FeatureToggleTest
test_case.body: @Test
      public void unregisterOnClose() {
          List<FeatureToggle> toggles;
          try (Feature feature = newFeature("my.toggle", whiteboard)) {
              assertFalse(feature.isEnabled());
              toggles = getFeatureToggles();
              assertEquals(1, toggles.size());
          }
          toggles = getFeatureToggles();
          assertThat(toggles, is(empty()));
      }
test_case.class_method_signature: FeatureToggleTest.unregisterOnClose()
test_case.full_signature: @Test public void unregisterOnClose()
test_case.identifier: unregisterOnClose
test_case.invocations: newFeature assertFalse isEnabled getFeatureToggles assertEquals size getFeatureToggles assertThat is empty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void unregisterOnClose()
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: state
focal_class.modifier: private final
focal_class.original_string: private final AtomicBoolean state;
focal_class.type: AtomicBoolean
focal_class.var_name: state
focal_class.file: oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/toggle/FeatureToggle.java
focal_class.identifier: FeatureToggle
focal_class.class_method_signature: FeatureToggle.FeatureToggle(String name, AtomicBoolean state)
focal_class.full_signature: public  FeatureToggle(String name, AtomicBoolean state)
focal_class.identifier: FeatureToggle
focal_class.modifiers: public
focal_class.parameters: (String name, AtomicBoolean state)
focal_class.signature:  FeatureToggle(String name, AtomicBoolean state)
focal_class.class_method_signature: FeatureToggle.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: FeatureToggle.isEnabled()
focal_class.full_signature: public boolean isEnabled()
focal_class.identifier: isEnabled
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEnabled()
focal_class.class_method_signature: FeatureToggle.setEnabled(boolean state)
focal_class.full_signature: public boolean setEnabled(boolean state)
focal_class.identifier: setEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean state)
focal_class.return: boolean
focal_class.signature: boolean setEnabled(boolean state)
focal_method.body: public boolean isEnabled() {
          return state.get();
      }
focal_method.class_method_signature: FeatureToggle.isEnabled()
focal_method.full_signature: public boolean isEnabled()
focal_method.identifier: isEnabled
focal_method.invocations: get
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isEnabled()