test_class.declarator: dataSource
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private HikariDataSource dataSource;
test_class.type: HikariDataSource
test_class.var_name: dataSource
test_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/test/java/org/apache/shardingsphere/transaction/xa/jta/datasource/XADataSourceFactoryTest.java
test_class.identifier: XADataSourceFactoryTest
test_case.body: @Test
      public void assertCreateH2XADataSource() {
          XADataSource xaDataSource = XADataSourceFactory.build(DatabaseTypes.getActualDatabaseType("H2"), dataSource);
          assertThat(xaDataSource, instanceOf(JdbcDataSource.class));
      }
test_case.class_method_signature: XADataSourceFactoryTest.assertCreateH2XADataSource()
test_case.full_signature: @Test public void assertCreateH2XADataSource()
test_case.identifier: assertCreateH2XADataSource
test_case.invocations: build getActualDatabaseType assertThat instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreateH2XADataSource()
focal_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/main/java/org/apache/shardingsphere/transaction/xa/jta/datasource/XADataSourceFactory.java
focal_class.identifier: XADataSourceFactory
focal_class.class_method_signature: XADataSourceFactory.build(final DatabaseType databaseType, final DataSource dataSource)
focal_class.full_signature: public static XADataSource build(final DatabaseType databaseType, final DataSource dataSource)
focal_class.identifier: build
focal_class.modifiers: public static
focal_class.parameters: (final DatabaseType databaseType, final DataSource dataSource)
focal_class.return: XADataSource
focal_class.signature: XADataSource build(final DatabaseType databaseType, final DataSource dataSource)
focal_method.body: public static XADataSource build(final DatabaseType databaseType, final DataSource dataSource) {
          return new DataSourceSwapper(XADataSourceDefinitionFactory.getXADataSourceDefinition(databaseType)).swap(dataSource);
      }
focal_method.class_method_signature: XADataSourceFactory.build(final DatabaseType databaseType, final DataSource dataSource)
focal_method.full_signature: public static XADataSource build(final DatabaseType databaseType, final DataSource dataSource)
focal_method.identifier: build
focal_method.invocations: swap getXADataSourceDefinition
focal_method.modifiers: public static
focal_method.parameters: (final DatabaseType databaseType, final DataSource dataSource)
focal_method.return: XADataSource
focal_method.signature: XADataSource build(final DatabaseType databaseType, final DataSource dataSource)