hTextFlow);
// When: number of plurals has changed to 1
when(resourceUtils.getNumPlurals(hTextFlow.getDocument(), hLocale))
.thenReturn(1);
GetTranslationHistoryResult result =
handler.execute(action, executionContext);
// Then: the contents we get back is consistent against number of plural
assertThat(result.getHistoryItems(),
Matchers.<TransHistoryItem> emptyIterable());
assertThat(result.getLatest().getVersionNum(),
Matchers.equalTo(currentTranslation.getVersionNum().toString()));
assertThat(result.getLatest().getContents(),
Matchers.contains(currentTranslation.getContents().get(0)));
assertThat(result.getLatest().getModifiedBy(), Matchers.equalTo(""));
}