source: class MVELRuleFactoryTest {
  
      @Parameterized.Parameter(0)
      public MVELRuleFactory factory;
      @Parameterized.Parameter(1)
      public String fileExtension;
  
      @Test
      public void testRuleCreationFromFileReader() throws Exception {
  
target:         // given
          Reader adultRuleDescriptorAsReader = new FileReader("src/test/resources/adult-rule." + fileExtension);
  
          // when
          Rule adultRule = factory.createRule(adultRuleDescriptorAsReader);
  
          // then
          assertThat(adultRule.getName()).isEqualTo("adult rule");
          assertThat(adultRule.getDescription()).isEqualTo("when age is greater than 18, then mark as adult");
          assertThat(adultRule.getPriority()).isEqualTo(1);
      }
  
  }