### Question:
DnsSrv { public static List<String> fromDnsSrv(final String serviceName, boolean full, boolean secure) throws NamingException { return fromDnsSrv(serviceName, full, secure, null); } private  DnsSrv(); static void setDnsEnvParameter(final String key, final String value); static List<String> fromDnsSrv(final String serviceName, boolean full, boolean secure); static List<String> fromDnsSrv(final String serviceName, boolean full, boolean secure,
                                        final String nameServerIP); static final String DEFAULT_DNS_SERVICE; static final String DEFAULT_DNS_SECURE_SERVICE; }### Answer:
@Test void bootstrapFromDnsSrv() throws Exception { try { String demoService = "_xmpp-server._tcp.gmail.com"; String publicNameServer = "8.8.8.8"; List<String> strings = DnsSrv.fromDnsSrv(demoService, true, false, publicNameServer); assertTrue(strings.size() > 0); } catch (CommunicationException ex) { } }