}
@Test
public void shouldSupportAllDbUnitConfigurationAttributes() throws Exception {
addBean("customBean", this.databaseConnection);
ExtendedTestContextManager testContextManager = new ExtendedTestContextManager(CustomConfiguration.class);
testContextManager.prepareTestInstance();
verify(this.applicationContext).getBean("customBean");
assertSame(this.databaseConnection,
testContextManager.getTestContextAttribute(DbUnitTestExecutionListener.CONNECTION_ATTRIBUTE));
assertEquals(CustomDataSetLoader.class,
testContextManager.getTestContextAttribute(DbUnitTestExecutionListener.DATA_SET_LOADER_ATTRIBUTE)
.getClass());
assertEquals(
CustomDatabaseOperationLookup.class,
testContextManager.getTestContextAttribute(
DbUnitTestExecutionListener.DATABASE_OPERATION_LOOKUP_ATTRIBUTE).getClass());
}