  @Test
  public void parse_complex() throws Exception {

    AttributeProcessor processor = new GravityAttributeProcessor() {
      @Override
      public void setGravity(View view, @Gravity int gravity) {

      }
    };

    Value value = processor.compile(new Primitive("top|left"), null);
    int gravity = Gravity.TOP | Gravity.LEFT;
    assertThat(value.getAsInt(), is(gravity));
  }