* <code>DEFAULT_NAME</code> is defined. (TRQS 322)
* @throws Exception if an error occurs during the Test.
*/
public void testDefaultDataSourceFactory() throws Exception
{
DataSourceFactory defaultDataSourceFactory
= Torque.getInstance().getDataSourceFactory(DEFAULT_NAME);
assertNotNull(
"The DataSourceFactory for Key "
+ DEFAULT_NAME
+ " should not be null",
defaultDataSourceFactory);
DataSourceFactory postgresqlDataSourceFactory
= Torque.getInstance().getDataSourceFactory(POSTGRESQL_NAME);
assertSame("The default DataSourceFactory "
+ "and the postgresql DataSourceFactory "
+ "are not the same object",
defaultDataSourceFactory,