@Autowired private MatchPredictionService predictionService;
@Test
public void novakDjokovicVsRafaelNadalPotentialRolandGarrosFinalPrediction() {
int playerId1 = playerService.findPlayerId("Novak Djokovic").get();
int playerId2 = playerService.findPlayerId("Rafael Nadal").get();
<BUG>MatchPrediction prediction = predictionService.predictMatch(playerId1, playerId2, new Date(), CLAY, GRAND_SLAM, F, (short)5);
System.out.printf("Novak Djokovic win: %1$.2f%%\n", 100.0 * prediction.getWinProbability1());</BUG>
System.out.printf("Rafael Nadal win: %1$.2f%%\n", 100.0 * prediction.getWinProbability2());
assertThat(prediction.getWinProbability1() + prediction.getWinProbability2()).isCloseTo(1.0, withPercentage(0.00001));
System.out.println(prediction.getItemProbabilities1());

@Autowired private MatchPredictionService predictionService;
@Test
public void novakDjokovicVsRafaelNadalPotentialRolandGarrosFinalPrediction() {
int playerId1 = playerService.findPlayerId("Novak Djokovic").get();
int playerId2 = playerService.findPlayerId("Rafael Nadal").get();
MatchPrediction prediction = predictionService.predictMatch(playerId1, playerId2, new Date(), CLAY, GRAND_SLAM, F);
System.out.printf("Novak Djokovic win: %1$.2f%%\n", 100.0 * prediction.getWinProbability1());
System.out.printf("Rafael Nadal win: %1$.2f%%\n", 100.0 * prediction.getWinProbability2());
assertThat(prediction.getWinProbability1() + prediction.getWinProbability2()).isCloseTo(1.0, withPercentage(0.00001));
System.out.println(prediction.getItemProbabilities1());
