package j.lang.test; import static org.junit.Assert.assertEquals; import org.junit.Test; public class LoadClassTest { @Test public void testLoadClassWithBytePrimitiveArray() throws Exception { String byteArrayBinaryName = byte[].class.getName(); Class c = Thread.currentThread().getContextClassLoader(). loadClass(byteArrayBinaryName); assertEquals(byte[].class, c); } }