ExampleSolrBean bean3 = new ExampleSolrBean("id-3", "three", null);
solrTemplate.saveBeans(Arrays.asList(bean1, bean2, bean3));
solrTemplate.commit();
TermsPage page = solrTemplate.queryForTermsPage(query);
ArrayList<TermsFieldEntry> values = Lists.newArrayList(page.getTermsForField("name"));
Assert.assertEquals("three", values.get(0).getValue());
Assert.assertEquals(3, values.get(0).getValueCount());
Assert.assertEquals("two", values.get(1).getValue());
Assert.assertEquals(2, values.get(1).getValueCount());