}
@SuppressWarnings("unchecked")
@Test
public void testExecuteDMLUpdates() throws Exception {
Configuration configuration = createNiceMock(Configuration.class);
DBAccessor dbAccessor = createNiceMock(DBAccessor.class);
Injector injector = createStrictMock(Injector.class);
Provider provider = createStrictMock(Provider.class);
EntityManager em = createStrictMock(EntityManager.class);
EntityTransaction et = createMock(EntityTransaction.class);
TypedQuery query = createMock(TypedQuery.class);
Method m = AbstractUpgradeCatalog.class.getDeclaredMethod
("updateConfigurationProperties", String.class, Map.class, boolean.class);
UpgradeCatalog161 upgradeCatalog = createMockBuilder(UpgradeCatalog161.class)
.addMockedMethod(m).createMock();
expect(configuration.getDatabaseUrl()).andReturn(Configuration.JDBC_IN_MEMORY_URL).anyTimes();
expect(injector.getProvider(EntityManager.class)).andReturn(provider).anyTimes();
expect(provider.get()).andReturn(em).anyTimes();
expect(em.getTransaction()).andReturn(et);
expect(et.isActive()).andReturn(true);
expect(em.createQuery("UPDATE ClusterEntity SET provisioningState = " +