### Question:
RdapQueryClient extends RdapClient { public NameserverDto searchNameserverByName(String name) throws RdapClientException { return search(NameserverDto.class, "name", name, SearchUri.NAMESERVER); } 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_searchNameserverByName(){ NameserverDto nameserver; try { setContent200("nameserver"); nameserver = client.searchNameserverByName("nameserverName"); } catch (RdapClientException e) { nameserver = null; } assertEquals("/nameservers?name=nameserverName", mockHttpServer.getRequestUrl()); assertEquals("nameserver-1", nameserver.getHandle()); }