### Question:
SearchAdapter { static org.apache.wiki.search.QueryItem oldQueryItemfrom( final QueryItem item ) { final org.apache.wiki.search.QueryItem qi = new org.apache.wiki.search.QueryItem(); qi.type = item.type; qi.word = item.word; return qi; }    }### Answer:
@Test public void testOldQueryItemfrom() { final QueryItem qi = new QueryItem(); qi.type = 1; qi.word = "word"; final org.apache.wiki.search.QueryItem old = SearchAdapter.oldQueryItemfrom( qi ); Assertions.assertEquals( qi.type, old.type ); Assertions.assertEquals( qi.word, old.word ); }