  @Test
  public void testLoadFactory() throws Exception {

    FeaturesConfigReader fcReader = new FeaturesConfigReader(loader,"ltr_features.conf");
    assertEquals(FieldFeatureTFExtractorFactory.class, FeaturesConfigReader.loadFactory(fcReader.getFeatureDesc("TF in title")).getClass());
    assertEquals(FieldFeatureTFExtractorFactory.class, FeaturesConfigReader.loadFactory(fcReader.getFeatureDesc("TF in body")).getClass());
    assertEquals(FieldFeatureIDFExtractorFactory.class, FeaturesConfigReader.loadFactory(fcReader.getFeatureDesc("IDF in title")).getClass());
    assertEquals(FieldFeatureIDFExtractorFactory.class, FeaturesConfigReader.loadFactory(fcReader.getFeatureDesc("IDF in body")).getClass());
  }