   @Test
   @Ignore
   public void pairwiseRankingAlgorithmTestCorrectInput()
         throws ParsingFailedException,
            TrainModelsFailedException,
            PredictionFailedException,
            LossException {

      File file = new File(getTestRessourcePathFor(OBJECT_RANKING_DATASET_B));
      PairwiseRankingLearningAlgorithm algortihm = new PairwiseRankingLearningAlgorithm();
      DatasetFile datasetFile = new DatasetFile(file);
      ObjectRankingDatasetParser objectRankingParser = (ObjectRankingDatasetParser) algortihm.getDatasetParser();
      IDataset<?, ?, ?> objectRankingDataset = objectRankingParser.parse(datasetFile);
      IInstance<?, ?, ?> instance = objectRankingDataset.getInstance(505);
      IDataset<?, ?, ?> testSet = objectRankingDataset.getPartOfDataset(515, 518);
      objectRankingDataset = objectRankingDataset.getPartOfDataset(0, 10);
      ILearningModel<?> train = algortihm.train(objectRankingDataset);
      PairwiseRankingLearningModel castedLearningModel = (PairwiseRankingLearningModel) train;
      Ranking predict = null;
      List<Ranking> predictedRankingsOnTestSet = new ArrayList<>();
      if (castedLearningModel != null) {
         predict = castedLearningModel.predict(instance);
         predictedRankingsOnTestSet = castedLearningModel.predict(testSet);
      }
      int[] objectList = new int[] { 0, 8, 21, 16, 7, 12, 30, 24, 59, 14 };
      Ranking expectedResult = new Ranking(objectList, Ranking.createCompareOperatorArrayForLabels(objectList));
      assertNotNull(predict);
      assertTrue(expectedResult.getObjectList().length == predict.getObjectList().length);
      assertTrue(expectedResult.getCompareOperators().length == predict.getCompareOperators().length);
      assertTrue(expectedResult.equals(predict));
      List<Ranking> expected = ((ObjectRankingDataset) testSet).getRankings();
      SpearmansCorrelation correlation = new SpearmansCorrelation();
      double rho = correlation.getAggregatedLossForRatings(expected, predictedRankingsOnTestSet);
      Assert.assertEquals(0.5191919191919192, rho, 0.0001);

   }