### Question:
HttpClientController { public Author addAuthor(String link, Author a1) throws IOException, SamlibParseException, SamlibInterruptException { Author a = getAuthorByURL(link, a1); a.extractName(); return a; } HttpClientController(AbstractSettings context); void cancelAll(); Author getAuthorByURL(String link, Author a); Author addAuthor(String link, Author a1); void downloadBook(Book book, Subject<Integer, Integer> subject); HashMap<String, ArrayList<AuthorCard>> searchAuthors(String pattern, int page); void setProxyData(ProxyData proxy1); static final int RETRY_LIMIT; static final int CONNECTION_TIMEOUT; static final int READ_TIMEOUT; static final String ENCODING; }### Answer:
@Test public void testAddAuthor() throws Exception { Author author= new Author(); author=httpClientController.addAuthor(AUTHOR_URI,author); assertTrue(author.getBooks().size()>0); assertTrue(author.getGroupBooks().size()>0); assertTrue(author.getName() != null); }