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

/*
 * #%L
 * Evaluation
 * %%
 * Copyright (C) 2014 - 2015 Github jjYBdx4IL Projects
 * %%
 * #L%
 */

import org.apache.commons.codec.binary.Hex;
import static org.junit.Assert.*;
import org.junit.Test;

/**
 *
 * @author Github jjYBdx4IL Projects
 */
public class CharacterTest {

    public static final Character CH32 = 32;
    public static final char ch32 = 32;

    @SuppressWarnings("all")
    @Test
    public void testImplicitTypeConversion() {
        assertTrue(' ' == 32);
        assertTrue(' ' == ch32);
        assertTrue(' ' == CH32);
        assertEquals(" ", CH32.toString());
    }

    @Test
    public void testCodePoint() {
        final String ue = "ü";
        final int codePt = ue.codePointAt(0);
        final byte[] ba = new byte[]{(byte)(codePt / 256), (byte)(codePt % 256)};

        assertEquals(252, codePt);
        assertEquals(ue, "\u00fc");
        assertEquals("00fc", Hex.encodeHexString(ba));
    }
}
-------------------------------------------------------------------------------
Test set: tests.java.lang.CharacterTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in tests.java.lang.CharacterTest
testImplicitTypeConversion  Time elapsed: 0 s
testCodePoint  Time elapsed: 0 s