@@ -0,0 +1,1952 @@
+/*%0A * Copyright 2013 headius.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.headius.invokebinder;%0A%0Aimport java.lang.invoke.MethodHandle;%0Aimport java.lang.invoke.MethodHandles;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author headius%0A */%0Apublic class SmartBinderTest %7B%0A    %0A    public SmartBinderTest() %7B%0A    %7D%0A    %0A    @BeforeClass%0A    public static void setUpClass() %7B%0A    %7D%0A    %0A    @AfterClass%0A    public static void tearDownClass() %7B%0A    %7D%0A    %0A    @Before%0A    public void setUp() %7B%0A    %7D%0A    %0A    @After%0A    public void tearDown() %7B%0A    %7D%0A%0A    /**%0A     * Test of from method, of class SmartBinder.%0A     */%0A    @Test%0A    public void testFrom_Signature() throws Throwable %7B%0A        SmartHandle handle = SmartBinder%0A                .from(Signature.returning(String.class).appendArg(%22int%22, int.class))%0A                .invoke(stringInt);%0A        %0A        assertEquals(%2242%22, (String)handle.handle().invokeExact(42));%0A    %7D%0A    %0A    private static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();%0A    %0A    private static final MethodHandle stringInt = Binder%0A            .from(String.class, int.class)%0A            .invokeStaticQuiet(LOOKUP, SmartBinderTest.class, %22stringInt%22);%0A    %0A    public static String stringInt(int value) %7B%0A        return Integer.toString(value);%0A    %7D%0A%7D

Add beginning of SmartBinder test.