@@ -0,0 +1,1879 @@
+package net.sectorsoftware.ygo.deck;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.io.Closeable;%0Aimport java.io.IOException;%0Aimport java.lang.RuntimeException;%0Aimport java.util.List;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class UserTest%0A%7B%0A    static %7B%0A        System.loadLibrary(%22ygodeck-jni%22);%0A    %7D%0A%0A    static class User_Fixture implements Closeable%0A    %7B%0A        public User_Fixture()%0A        %7B%0A            DB.setPath(System.getenv(%22CARD_DB_PATH%22));%0A        %7D%0A%0A        @Override%0A        public void close() throws IOException%0A        %7B%0A        %7D%0A%0A    %7D%0A%0A    private User_Fixture fixture;%0A%0A    @Before%0A    public void setup()%0A    %7B%0A        fixture = new User_Fixture();%0A    %7D%0A%0A    @After%0A    public void tearDown() throws IOException%0A    %7B%0A        fixture.close();%0A        fixture = null;%0A    %7D%0A%0A    @Test%0A    public void Create()%0A    %7B%0A        User user = new User(%22Test%22, true);%0A        assertEquals(user.name(), %22Test%22);%0A        user.delete();%0A    %7D%0A%0A    @Test%0A    public void Open()%0A    %7B%0A        User user = new User(%22OpenTest%22, true);%0A        user.delete();%0A        User user2 = new User(%22OpenTest%22);%0A        assertEquals(user2.name(), %22OpenTest%22);%0A        user.delete();%0A    %7D%0A%0A    @Test%0A    public void Unknown()%0A    %7B%0A        try %7B%0A            User user = new User(%22NotKnown%22);%0A            assertEquals(0, 1);%0A        %7D catch (RuntimeException e) %7B%0A            assertEquals(1, 1);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void Remove()%0A    %7B%0A        User user = new User(%22RemoveTest%22, true);%0A        assertEquals(user.name(), %22RemoveTest%22);%0A        user.remove();%0A        user.delete();%0A        try %7B%0A            User user2 = new User(%22RemoveTest%22);%0A            assertEquals(0, 1);%0A        %7D catch (RuntimeException e) %7B%0A            assertEquals(1, 1);%0A        %7D%0A    %7D%0A%0A%7D%0A

Add unit tests for java User binding