docs: public final void assertState(int expected)
                      throws InvalidBeanOStateException
      {
          if (state != expected) {
              throw new InvalidBeanOStateException(getStateName(state),
                              getStateName(expected));
          }
      }