@@ -0,0 +1,662 @@
+package org.webbitserver.helpers;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class HexTest %7B%0A%09@Test%0A    public void testEncodesByteArray() %7B%0A        byte input%5B%5D = %22hello world%22.getBytes();%0A        String expected = %2268656C6C6F20776F726C64%22;%0A        assertEquals(expected, Hex.toHex(input));%0A    %7D%0A%09%0A%09@Test%0A%09public void testEncodesMultilineByteArray() %7B%0A%09%09byte input%5B%5D = %22the quick%5Cr%5Cnbrown fox%5Cn%5Cnjumps over the%5Cnlazy dog%22.getBytes();%0A        String expected = %2274686520717569636B0D0A62726F776E20666F78%22 +%0A        %09%09%09%09%220A0A6A756D7073206F766572207468650A6C617A7920646F67%22;%0A        assertEquals(expected, Hex.toHex(input));%0A%09%7D%0A%7D

Add tests for Hex.toHex() method