private static void assertEquals(double expected, double actual, String message) {
        if (Math.abs(expected - actual) >= 0.00001) {
            System.err.println(message+": expected="+expected+", actual="+actual);
            throw new AssertionError();
        }
    }
Test class for the build in libraries
@author shaman
jme3-examples/src/main/java/jme3test/opencl/TestOpenCLLibraries.java