test_class.file: DbSetup-core/src/test/java/com/ninja_squad/dbsetup/destination/DataSourceDestinationTest.java
test_class.identifier: DataSourceDestinationTest
test_case.body: @Test
      public void getConnectionWorks() throws SQLException {
          DataSource dataSource = mock(DataSource.class);
          Connection connection = mock(Connection.class);
          when(dataSource.getConnection()).thenReturn(connection);
          assertSame(connection, new DataSourceDestination(dataSource).getConnection());
      }
test_case.class_method_signature: DataSourceDestinationTest.getConnectionWorks()
test_case.full_signature: @Test public void getConnectionWorks()
test_case.identifier: getConnectionWorks
test_case.invocations: mock mock thenReturn when getConnection assertSame getConnection
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getConnectionWorks()
focal_class.declarator: dataSource
focal_class.modifier: private final
focal_class.original_string: private final DataSource dataSource;
focal_class.type: DataSource
focal_class.var_name: dataSource
focal_class.file: DbSetup-core/src/main/java/com/ninja_squad/dbsetup/destination/DataSourceDestination.java
focal_class.identifier: DataSourceDestination
focal_class.interfaces: implements Destination
focal_class.class_method_signature: DataSourceDestination.DataSourceDestination(@Nonnull DataSource dataSource)
focal_class.full_signature: public  DataSourceDestination(@Nonnull DataSource dataSource)
focal_class.identifier: DataSourceDestination
focal_class.modifiers: public
focal_class.parameters: (@Nonnull DataSource dataSource)
focal_class.signature:  DataSourceDestination(@Nonnull DataSource dataSource)
focal_class.class_method_signature: DataSourceDestination.with(@Nonnull DataSource dataSource)
focal_class.full_signature: public static DataSourceDestination with(@Nonnull DataSource dataSource)
focal_class.identifier: with
focal_class.modifiers: public static
focal_class.parameters: (@Nonnull DataSource dataSource)
focal_class.return: DataSourceDestination
focal_class.signature: DataSourceDestination with(@Nonnull DataSource dataSource)
focal_class.class_method_signature: DataSourceDestination.getConnection()
focal_class.full_signature: @Override public Connection getConnection()
focal_class.identifier: getConnection
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Connection
focal_class.signature: Connection getConnection()
focal_class.class_method_signature: DataSourceDestination.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_class.class_method_signature: DataSourceDestination.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DataSourceDestination.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_method.body: @Override
      public Connection getConnection() throws SQLException {
          return dataSource.getConnection();
      }
focal_method.class_method_signature: DataSourceDestination.getConnection()
focal_method.full_signature: @Override public Connection getConnection()
focal_method.identifier: getConnection
focal_method.invocations: getConnection
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Connection
focal_method.signature: Connection getConnection()