@Test
public void testDynamic() throws Exception {

   define(OverwriteMockDataSourceProvider.class);
   define(MockDataSourceProvider.class);
   JdbcDataSourceDescriptorManager manager = lookup(JdbcDataSourceDescriptorManager.class);
   JdbcDataSourceDescriptor mock1 = manager.getDescriptor("mock1");
   JdbcDataSourceDescriptor mock2 = manager.getDescriptor("mock2");
   checkProperty(mock1, "user", "overwrite user user");
   checkProperty(mock1, "url", "overwrite user url");
   checkProperty(mock2, "user", "history user");
   checkProperty(mock2, "url", "history url");
   checkNames(manager, "mock1", "mock2", "jdbc-dal", "user", "history");
}