class PossibleActionsRuleEngine {

    public void requirePossibleAction(PossibleActionEnum action, EnumSet<PossibleActionEnum> possibleActions)
            throws ActionNotPossibleException {
        if (!possibleActions.contains(action)) {
            throw new ActionNotPossibleException(action + " is not possible");
        }
    }

}