Collection<HRegion> regions = regionServer.getOnlineRegions();
HRegion region = regions.iterator().next();
LOG.debug("Asking RS to close region " + region.getRegionNameAsString());
AtomicBoolean closeEventProcessed = new AtomicBoolean(false);
RegionServerOperationListener listener =
new CloseRegionEventListener(region.getRegionNameAsString(), closeEventProcessed);
HMaster master = TEST_UTIL.getHBaseCluster().getMaster();
master.getRegionServerOperationQueue().registerRegionServerOperationListener(listener);
HMsg closeRegionMsg = new HMsg(HMsg.Type.MSG_REGION_CLOSE,
region.getRegionInfo(),