@@ -0,0 +1,2108 @@
+// Copyright %C2%A9 2013-2015 Esko Luontola %3Cwww.orfjackal.net%3E%0A// This software is released under the Apache License 2.0.%0A// The license text is at http://www.apache.org/licenses/LICENSE-2.0%0A%0Apackage net.orfjackal.retrolambda.lambdas;%0A%0Aimport org.junit.Test;%0Aimport org.objectweb.asm.*;%0A%0Aimport static net.orfjackal.retrolambda.lambdas.Handles.*;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.objectweb.asm.Opcodes.*;%0A%0Apublic class HandlesTest %7B%0A%0A    @Test%0A    public void testGetOpcode() %7B%0A        assertThat(getOpcode(handle(H_INVOKEVIRTUAL)), is(INVOKEVIRTUAL));%0A        assertThat(getOpcode(handle(H_INVOKESTATIC)), is(INVOKESTATIC));%0A        assertThat(getOpcode(handle(H_INVOKESPECIAL)), is(INVOKESPECIAL));%0A        assertThat(getOpcode(handle(H_NEWINVOKESPECIAL)), is(INVOKESPECIAL));%0A        assertThat(getOpcode(handle(H_INVOKEINTERFACE)), is(INVOKEINTERFACE));%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testGetOpcodeNegative() %7B%0A        getOpcode(handle(0));%0A    %7D%0A%0A    @Test%0A    public void testOpcodeToTag() %7B%0A        assertThat(opcodeToTag(INVOKEVIRTUAL), is(H_INVOKEVIRTUAL));%0A        assertThat(opcodeToTag(INVOKESTATIC), is(H_INVOKESTATIC));%0A        assertThat(opcodeToTag(INVOKESPECIAL), is(H_INVOKESPECIAL));%0A        assertThat(opcodeToTag(INVOKEINTERFACE), is(H_INVOKEINTERFACE));%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testOpcodeToTagNegative() %7B%0A        opcodeToTag(0);%0A    %7D%0A%0A    @Test%0A    public void testAccessToTag() %7B%0A        assertThat(accessToTag(ACC_STATIC, true), is(H_INVOKESTATIC));%0A        assertThat(accessToTag(ACC_STATIC, false), is(H_INVOKESTATIC));%0A%0A        assertThat(accessToTag(ACC_PRIVATE, true), is(H_INVOKESPECIAL));%0A        assertThat(accessToTag(ACC_PRIVATE, false), is(H_INVOKESPECIAL));%0A%0A        assertThat(accessToTag(ACC_PUBLIC, true), is(H_INVOKEINTERFACE));%0A        assertThat(accessToTag(ACC_PUBLIC, false), is(H_INVOKEVIRTUAL));%0A    %7D%0A%0A    private Handle handle(int tag) %7B%0A        return new Handle(tag, null, null, null);%0A    %7D%0A%0A%7D%0A

Add unit tests for Handles class