package com.spotify.jni;

public class ClassWrapperTest {
    static {
        System.loadLibrary("JniHelpersTest");
    }
}

@@ -19,16 +19,86 @@
 y.jni;%0A%0A
+import org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A
 public c
@@ -185,11 +185,1011 @@
 );%0A    %7D
+%0A%0A    static final double TEST_FLOAT_TOLERANCE = 0.01;%0A%0A    @Test%0A    native public void createClassWrapper() throws Exception;%0A%0A    @Test%0A    native public void getCanonicalName() throws Exception;%0A%0A    @Test%0A    native public void getSimpleName() throws Exception;%0A%0A    @Test%0A    native public void merge() throws Exception;%0A%0A    native public void nativeSetJavaObject(TestObject object);%0A    @Test%0A    public void setJavaObject() throws Exception %7B%0A        TestObject object = new TestObject(%22hello%22, 1, 3.14f);%0A        nativeSetJavaObject(object);%0A    %7D%0A%0A    native public TestObject nativeToJavaObject();%0A    @Test%0A    public void toJavaObject() throws Exception %7B%0A        TestObject object = nativeToJavaObject();%0A        assertEquals(%22hello%22, object.s);%0A        assertEquals(1, object.i);%0A        assertEquals(3.14, object.f, TEST_FLOAT_TOLERANCE);%0A    %7D%0A%0A    @Test%0A    native public void getCachedMethod() throws Exception;%0A%0A    @Test%0A    native public void getCachedField() throws Exception;
 %0A%7D%0A

Add test cases for ClassWrapper