SearchHandler implements SearchService.Iface { @Override public List<SearchResult> search(String text, User user) throws TException { return searchFiltered(text,user,null); } SearchHandler(); @Override List<SearchResult> searchFiltered(String text, User user, List<String> typeMask); @Override List<SearchResult> search(String text, User user);  }
@Test(expected = TException.class) public void testSearchNull() throws Exception { handler.search(null, null); }