test_class.declarator: AUTHENTICATION_YAML = "  users:\n" + "    root1:\n      password: root1\n" 
              + "      authorizedSchemas: sharding_db\n" + "    root2:\n" + "      password: root2\n" + "      authorizedSchemas: sharding_db,pr_db"
test_class.modifier: private static final
test_class.original_string: private static final String AUTHENTICATION_YAML = "  users:\n" + "    root1:\n      password: root1\n" 
              + "      authorizedSchemas: sharding_db\n" + "    root2:\n" + "      password: root2\n" + "      authorizedSchemas: sharding_db,pr_db";
test_class.type: String
test_class.var_name: AUTHENTICATION_YAML
test_class.declarator: authenticationChangedListener
test_class.modifier: private
test_class.original_string: private AuthenticationChangedListener authenticationChangedListener;
test_class.type: AuthenticationChangedListener
test_class.var_name: authenticationChangedListener
test_class.declarator: configurationRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ConfigurationRepository configurationRepository;
test_class.type: ConfigurationRepository
test_class.var_name: configurationRepository
test_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-config/src/test/java/org/apache/shardingsphere/governance/core/config/listener/AuthenticationChangedListenerTest.java
test_class.identifier: AuthenticationChangedListenerTest
test_case.body: @Test
      public void assertCreateGovernanceEvent() {
          Optional<GovernanceEvent> actual = authenticationChangedListener.createGovernanceEvent(new DataChangedEvent("test", AUTHENTICATION_YAML, ChangedType.UPDATED));
          assertTrue(actual.isPresent());
          assertThat(((AuthenticationChangedEvent) actual.get()).getAuthentication().getUsers().get("root1").getPassword(), is("root1"));
      }
test_case.class_method_signature: AuthenticationChangedListenerTest.assertCreateGovernanceEvent()
test_case.full_signature: @Test public void assertCreateGovernanceEvent()
test_case.identifier: assertCreateGovernanceEvent
test_case.invocations: createGovernanceEvent assertTrue isPresent assertThat getPassword get getUsers getAuthentication get is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreateGovernanceEvent()
focal_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-config/src/main/java/org/apache/shardingsphere/governance/core/config/listener/AuthenticationChangedListener.java
focal_class.identifier: AuthenticationChangedListener
focal_class.class_method_signature: AuthenticationChangedListener.AuthenticationChangedListener(final ConfigurationRepository configurationRepository)
focal_class.full_signature: public  AuthenticationChangedListener(final ConfigurationRepository configurationRepository)
focal_class.identifier: AuthenticationChangedListener
focal_class.modifiers: public
focal_class.parameters: (final ConfigurationRepository configurationRepository)
focal_class.signature:  AuthenticationChangedListener(final ConfigurationRepository configurationRepository)
focal_class.class_method_signature: AuthenticationChangedListener.createGovernanceEvent(final DataChangedEvent event)
focal_class.full_signature: @Override protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_class.identifier: createGovernanceEvent
focal_class.modifiers: @Override protected
focal_class.parameters: (final DataChangedEvent event)
focal_class.return: Optional<GovernanceEvent>
focal_class.signature: Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_class.superclass: extends PostGovernanceRepositoryEventListener
focal_method.body: @Override
      protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event) {
          return Optional.of(new AuthenticationChangedEvent(new AuthenticationYamlSwapper().swapToObject(YamlEngine.unmarshal(event.getValue(), YamlAuthenticationConfiguration.class))));
      }
focal_method.class_method_signature: AuthenticationChangedListener.createGovernanceEvent(final DataChangedEvent event)
focal_method.full_signature: @Override protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)
focal_method.identifier: createGovernanceEvent
focal_method.invocations: of swapToObject unmarshal getValue
focal_method.modifiers: @Override protected
focal_method.parameters: (final DataChangedEvent event)
focal_method.return: Optional<GovernanceEvent>
focal_method.signature: Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event)