// testSentences[i] stores the candidate translation for the i'th sentence
String[] testSentences = new String[1];
testSentences[0] = test;
try {
// Check BLEU score matches
double actualScore = bleu.score(testSentences);
double expectedScore = 0.2513;
double acceptableScoreDelta = 0.00001f;
Assert.assertEquals(actualScore, expectedScore, acceptableScoreDelta);