when(i18n.getPropertyKeys()).thenReturn(ImmutableSet.of(key1, key2, key3));
when(i18n.message(locale, key1, key1)).thenReturn(key1);
when(i18n.message(locale, key2, key2)).thenReturn(key2);
when(i18n.message(locale, key3, key3)).thenReturn(key3);
Result result = new WsTester(new L10nWs(i18n, server)).newGetRequest("api/l10n", "index").setParam("ts", DateUtils.formatDateTime(aBitEarlier)).execute();
verify(i18n).getPropertyKeys();
verify(i18n).message(locale, key1, key1);
verify(i18n).message(locale, key2, key2);
verify(i18n).message(locale, key3, key3);