base:
  available:
    - A 1.0.0
    - A 2.0.0
    - B 1.0.0; depends A == 1.0.0
    - B 2.0.0; depends A == 2.0.0

cases:
-
  request:
    - install: B
  response:
    - state:
      - A 2.0.0
      - B 2.0.0
-
  request:
    - install: B == 2.0.0
  response:
    - state:
      - A 2.0.0
      - B 2.0.0
-
  request:
    - install: B == 1.0.0
  response:
    - state:
      - A 1.0.0
      - B 1.0.0
