@Test
public void testUpdateHostRoleCommands() throws Exception {

  final DBAccessor dbAccessor = createNiceMock(DBAccessor.class);
  dbAccessor.createIndex(eq("idx_hrc_status_role"), eq("host_role_command"), eq("status"), eq("role"));
  expectLastCall().once();
  replay(dbAccessor);
  Module module = new Module() {
    @Override
    public void configure(Binder binder) {
      binder.bind(DBAccessor.class).toInstance(dbAccessor);
      binder.bind(OsFamily.class).toInstance(createNiceMock(OsFamily.class));
    }
  };
  Injector injector = Guice.createInjector(module);
  UpgradeCatalog222 upgradeCatalog222 = injector.getInstance(UpgradeCatalog222.class);
  upgradeCatalog222.updateHostRoleCommands();
  verify(dbAccessor);
}