@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());
}