test_class.declarator: dataSource
test_class.modifier: @Mock(answer = Answers.RETURNS_DEEP_STUBS)
      private
test_class.original_string: @Mock(answer = Answers.RETURNS_DEEP_STUBS)
      private DataSource dataSource;
test_class.type: DataSource
test_class.var_name: dataSource
test_class.file: shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/test/java/org/apache/shardingsphere/proxy/db/DatabaseServerInfoTest.java
test_class.identifier: DatabaseServerInfoTest
test_case.body: @Test
      public void assertToString() throws SQLException {
          DatabaseMetaData databaseMetaData = mock(DatabaseMetaData.class);
          when(databaseMetaData.getDatabaseProductName()).thenReturn("fixtureDB");
          when(databaseMetaData.getDatabaseProductVersion()).thenReturn("1.0.0");
          when(dataSource.getConnection().getMetaData()).thenReturn(databaseMetaData);
          assertThat(new DatabaseServerInfo(dataSource).toString(), is("Database name is `fixtureDB`, version is `1.0.0`"));
      }
test_case.class_method_signature: DatabaseServerInfoTest.assertToString()
test_case.full_signature: @Test public void assertToString()
test_case.identifier: assertToString
test_case.invocations: mock thenReturn when getDatabaseProductName thenReturn when getDatabaseProductVersion thenReturn when getMetaData getConnection assertThat toString is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertToString()
focal_class.declarator: databaseName
focal_class.modifier: private final
focal_class.original_string: private final String databaseName;
focal_class.type: String
focal_class.var_name: databaseName
focal_class.declarator: databaseVersion
focal_class.modifier: private final
focal_class.original_string: private final String databaseVersion;
focal_class.type: String
focal_class.var_name: databaseVersion
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/java/org/apache/shardingsphere/proxy/db/DatabaseServerInfo.java
focal_class.identifier: DatabaseServerInfo
focal_class.class_method_signature: DatabaseServerInfo.DatabaseServerInfo(final DataSource dataSource)
focal_class.full_signature: public  DatabaseServerInfo(final DataSource dataSource)
focal_class.identifier: DatabaseServerInfo
focal_class.modifiers: public
focal_class.parameters: (final DataSource dataSource)
focal_class.signature:  DatabaseServerInfo(final DataSource dataSource)
focal_class.class_method_signature: DatabaseServerInfo.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public String toString() {
          return String.format("Database name is `%s`, version is `%s`", databaseName, databaseVersion);
      }
focal_method.class_method_signature: DatabaseServerInfo.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: format
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()