### Question:
MasterSlaveDataSource extends AbstractDataSourceAdapter { @Override public Connection getConnection() throws SQLException { throw new UnsupportedOperationException("Master slave data source cannot support get connection directly."); }  static String getDataSourceName(final String dataSourceName, final SQLType sqlType); DataSource getDataSource(final SQLType sqlType); String getDatabaseProductName(); @Override Connection getConnection(); static void resetDMLFlag();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void assertGetConnection() throws SQLException { masterSlaveDataSource.getConnection(); }