### Question:
RdapQueryClient extends RdapClient { public DomainDto searchDomainByName(String name) throws RdapClientException { return search(DomainDto.class, "name", name, SearchUri.DOMAIN); } RdapQueryClient(RdapClientConfig config); IpDto queryIp(String address); IpDto queryIp(String cidrPrefix, int cidrLength); DomainDto queryDomain(String name); NameserverDto queryNameserver(String name); AutnumDto queryAutnum(long autnum); EntityDto queryEntity(String handle); DomainDto searchDomainByName(String name); DomainDto searchDomainByNsLdhName(String nsLdhName); DomainDto searchDomainByNsIp(String nsIp); NameserverDto searchNameserverByName(String name); NameserverDto searchNameserverByIp(String ip); EntityDto searchEntityByFn(String name); EntityDto searchEntityByHandle(String handle); Help help();  }### Answer:
@Test public void test_searchDomainByName(){ DomainDto domain; try { setContent200("domain"); domain = client.searchDomainByName("domainName"); } catch (RdapClientException e) { domain = null; } assertEquals("/domains?name=domainName", mockHttpServer.getRequestUrl()); assertEquals("domain-1", domain.getHandle()); }