test_class.declarator: LOG_FILE_NAME = "binlog-000001"
test_class.modifier: private static final
test_class.original_string: private static final String LOG_FILE_NAME = "binlog-000001";
test_class.type: String
test_class.var_name: LOG_FILE_NAME
test_class.declarator: LOG_POSITION = 4L
test_class.modifier: private static final
test_class.original_string: private static final long LOG_POSITION = 4L;
test_class.type: long
test_class.var_name: LOG_POSITION
test_class.declarator: SERVER_ID = 555555
test_class.modifier: private static final
test_class.original_string: private static final long SERVER_ID = 555555;
test_class.type: long
test_class.var_name: SERVER_ID
test_class.declarator: dataSource
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataSource dataSource;
test_class.type: DataSource
test_class.var_name: dataSource
test_class.declarator: connection
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Connection connection;
test_class.type: Connection
test_class.var_name: connection
test_class.file: shardingsphere-scaling/shardingsphere-scaling-mysql/src/test/java/org/apache/shardingsphere/scaling/mysql/MySQLPositionManagerTest.java
test_class.identifier: MySQLPositionManagerTest
test_case.body: @Test
      public void assertUpdateCurrentPosition() {
          MySQLPositionManager mysqlPositionManager = new MySQLPositionManager(dataSource);
          BinlogPosition expected = new BinlogPosition(LOG_FILE_NAME, LOG_POSITION, SERVER_ID);
          mysqlPositionManager.setPosition(expected);
          assertThat(mysqlPositionManager.getPosition(), is(expected));
      }
test_case.class_method_signature: MySQLPositionManagerTest.assertUpdateCurrentPosition()
test_case.full_signature: @Test public void assertUpdateCurrentPosition()
test_case.identifier: assertUpdateCurrentPosition
test_case.invocations: setPosition assertThat getPosition is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertUpdateCurrentPosition()
focal_class.declarator: GSON = new Gson()
focal_class.modifier: private static final
focal_class.original_string: private static final Gson GSON = new Gson();
focal_class.type: Gson
focal_class.var_name: GSON
focal_class.declarator: dataSource
focal_class.modifier: private
focal_class.original_string: private DataSource dataSource;
focal_class.type: DataSource
focal_class.var_name: dataSource
focal_class.file: shardingsphere-scaling/shardingsphere-scaling-mysql/src/main/java/org/apache/shardingsphere/scaling/mysql/MySQLPositionManager.java
focal_class.identifier: MySQLPositionManager
focal_class.class_method_signature: MySQLPositionManager.MySQLPositionManager(final DataSource dataSource)
focal_class.full_signature: public  MySQLPositionManager(final DataSource dataSource)
focal_class.identifier: MySQLPositionManager
focal_class.modifiers: public
focal_class.parameters: (final DataSource dataSource)
focal_class.signature:  MySQLPositionManager(final DataSource dataSource)
focal_class.class_method_signature: MySQLPositionManager.MySQLPositionManager(final String position)
focal_class.full_signature: public  MySQLPositionManager(final String position)
focal_class.identifier: MySQLPositionManager
focal_class.modifiers: public
focal_class.parameters: (final String position)
focal_class.signature:  MySQLPositionManager(final String position)
focal_class.class_method_signature: MySQLPositionManager.getPosition()
focal_class.full_signature: @Override public BinlogPosition getPosition()
focal_class.identifier: getPosition
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: BinlogPosition
focal_class.signature: BinlogPosition getPosition()
focal_class.class_method_signature: MySQLPositionManager.initPosition()
focal_class.full_signature: private void initPosition()
focal_class.identifier: initPosition
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initPosition()
focal_class.class_method_signature: MySQLPositionManager.getBinlogPosition(final Connection connection)
focal_class.full_signature: private BinlogPosition getBinlogPosition(final Connection connection)
focal_class.identifier: getBinlogPosition
focal_class.modifiers: private
focal_class.parameters: (final Connection connection)
focal_class.return: BinlogPosition
focal_class.signature: BinlogPosition getBinlogPosition(final Connection connection)
focal_class.class_method_signature: MySQLPositionManager.getServerId(final Connection connection)
focal_class.full_signature: private long getServerId(final Connection connection)
focal_class.identifier: getServerId
focal_class.modifiers: private
focal_class.parameters: (final Connection connection)
focal_class.return: long
focal_class.signature: long getServerId(final Connection connection)
focal_class.superclass: extends BasePositionManager<BinlogPosition>
focal_method.body: @Override
      public BinlogPosition getPosition() {
          BinlogPosition position = super.getPosition();
          if (null != position) {
              return position;
          }
          initPosition();
          return super.getPosition();
      }
focal_method.class_method_signature: MySQLPositionManager.getPosition()
focal_method.full_signature: @Override public BinlogPosition getPosition()
focal_method.identifier: getPosition
focal_method.invocations: getPosition initPosition getPosition
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: BinlogPosition
focal_method.signature: BinlogPosition getPosition()