### Question:
UpgradeCatalog272 extends AbstractUpgradeCatalog { @Override protected void executeDMLUpdates() throws AmbariException, SQLException { renameLdapSynchCollisionBehaviorValue(); createRoleAuthorizations(); } @Inject  UpgradeCatalog272(Injector injector); @Override String getSourceVersion(); @Override String getTargetVersion();  }### Answer:
@Test public void testExecuteDMLUpdates() throws Exception { final Method renameLdapSynchCollisionBehaviorValue = UpgradeCatalog272.class.getDeclaredMethod("renameLdapSynchCollisionBehaviorValue"); final Method createRoleAuthorizations = UpgradeCatalog272.class.getDeclaredMethod("createRoleAuthorizations"); final UpgradeCatalog272 upgradeCatalog272 = createMockBuilder(UpgradeCatalog272.class).addMockedMethod(renameLdapSynchCollisionBehaviorValue) .addMockedMethod(createRoleAuthorizations).createMock(); expect(upgradeCatalog272.renameLdapSynchCollisionBehaviorValue()).andReturn(0).once(); upgradeCatalog272.createRoleAuthorizations(); expectLastCall().once(); replay(upgradeCatalog272); upgradeCatalog272.executeDMLUpdates(); verify(upgradeCatalog272); }