@Test
public void testInitTagsNoException() {
twProd.updateTag(new JTag("test"), 6);
ElasticUserSearch uSearch = mock(ElasticUserSearch.class);
ElasticTagSearch tagSearch = mock(ElasticTagSearch.class);
when(uSearch.getQueryTerms()).thenReturn(Arrays.asList("test OR pest"));
when(tagSearch.findSorted(0, 1000)).thenReturn(Arrays.asList(new JTag("solr OR lucene")));
twProd.setUserSearch(uSearch);
twProd.setTagSearch(tagSearch);
Collection<JTag> tags = twProd.initTags();
assertEquals(3, tags.size());