Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/tests/java/net/IDNTest.java
package tests.java.net;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import java.net.IDN;

public class IDNTest {

    @Test
    public void test() {
        assertEquals("www.abc.de", IDN.toASCII("www.abc.de"));
        assertEquals("xn--tda", IDN.toASCII("ü"));
        assertEquals("xn--ab-xka.de", IDN.toASCII("aüb.de"));
    }
}
-------------------------------------------------------------------------------
Test set: tests.java.net.IDNTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 s - in tests.java.net.IDNTest
test  Time elapsed: 0.014 s