assertEquals(new Integer(10), customerDataSource.getVersion());
}
@Test
public void applyConfigrationToAnnotatedConfigurationObject() {
DataSourceConfiguration customerDataSource = new DataSourceConfiguration();
configuration.on(customerDataSource);
assertEquals("derby", customerDataSource.getVendor());
assertEquals("username", customerDataSource.getUsername());
assertEquals("jdbc://url", customerDataSource.getUrl());
assertEquals("password", customerDataSource.getPassword());
assertEquals(new Integer(10), customerDataSource.getVersion());
}