package nu.studer.gradle.util;

import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

public class MD5Test {

    @Test
    public void generateMD5Hash() {
        String input = "some string";

        String result = MD5.generateMD5Hash(input);

        for (char c : result.toCharArray()) {
            boolean isHex = '0' <= c && c <= '9' || 'A' <= c && c <= 'F';
            assertTrue("Character must be HEX: " + c, isHex);
        }
    }

    @Test
    public void convertByteArrayToHexString() {
        byte[] bytes = new byte[]{-128, -1, 0, 9, 10, 11, 17, 127};
        String hex = Base64.printHexBinary(bytes);
        assertEquals("80FF00090A0B117F", hex);
    }

}

@@ -53,53 +53,8 @@
 t;%0A%0A
-import static org.junit.Assert.assertEquals;%0A
 impo
@@ -458,237 +458,6 @@
  %7D%0A%0A
-    @Test%0A    public void convertByteArrayToHexString() %7B%0A        byte%5B%5D bytes = new byte%5B%5D%7B-128, -1, 0, 9, 10, 11, 17, 127%7D;%0A        String hex = Base64.printHexBinary(bytes);%0A        assertEquals(%2280FF00090A0B117F%22, hex);%0A    %7D%0A%0A
 %7D%0A

Remove redundant test