public boolean isInTransition() {
    return getProcedure() != null;
  }
Notice that, we will return true if {@code expected} is empty.
<p/>
This is a bit strange but we need this logic, for example, we can change the state to OPENING
from any state, as in SCP we will not change the state to CLOSED before opening the region.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateNode.java