package com.ledboot.netmonitor;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
public class ExampleUnitTest {
    @Test
    public void addition_isCorrect() throws Exception {
        assertEquals(4, 2 + 2);
    }
}
@@ -50,16 +50,127 @@
 .Test;%0A%0A
+import java.lang.reflect.InvocationTargetException;%0Aimport java.lang.reflect.Method;%0A%0Aimport okhttp3.Headers;%0A%0A
 import s
@@ -508,15 +508,810 @@
 2 + 2);%0A
+        Headers.Builder headerBuilder = new Headers.Builder();%0A        resetHeader(headerBuilder);%0A        System.out.println(headerBuilder.get(%22key1%22));%0A    %7D%0A%0A    /**%0A     * %E9%87%8D%E7%BD%AE%E5%A4%B4%E9%83%A8%0A     * @param o%0A     */%0A    private void resetHeader(Object o)%7B%0A        try %7B%0A            Method method = o.getClass().getDeclaredMethod(%22add%22,new Class%5B%5D%7BString.class,String.class%7D);%0A            if(method != null)%7B%0A                method.invoke(o,new String%5B%5D%7B%22key1%22,%22123456%22%7D);%0A            %7Delse%7B%0A                System.out.println(%22method is null!%22);%0A            %7D%0A        %7D catch (NoSuchMethodException e) %7B%0A            e.printStackTrace();%0A        %7D catch (InvocationTargetException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IllegalAccessException e) %7B%0A            e.printStackTrace();%0A        %7D%0A
     %7D%0A%7D

update test case