JDBCBackendDataSource implements BackendDataSource { public Connection getConnection(final String schemaName, final String dataSourceName) throws SQLException { return getConnections(schemaName, dataSourceName, 1, ConnectionMode.MEMORY_STRICTLY).get(0); }  Connection getConnection(final String schemaName, final String dataSourceName); List<Connection> getConnections(final String schemaName, final String dataSourceName, final int connectionSize, final ConnectionMode connectionMode); @SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter") List<Connection> getConnections(final String schemaName, final String dataSourceName,
                                           final int connectionSize, final ConnectionMode connectionMode, final TransactionType transactionType);  }
@Test public void assertGetConnectionFixedOne() throws SQLException { Connection actual = ProxyContext.getInstance().getBackendDataSource().getConnection("schema", String.format(DATA_SOURCE_PATTERN, 1)); assertThat(actual, instanceOf(Connection.class)); }