@@ -0,0 +1,1654 @@
+package com.braintreegateway;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class RequestBuilderTest %7B%0A%0A    @Test%0A    public void toXml() %7B%0A        RequestBuilder builder = new RequestBuilder(%22myparent%22);%0A        builder.addElement(%22name%22, %22value%22);%0A        String result = builder.toXML();%0A        assertEquals(%22%3Cmyparent%3E%3Cname%3Evalue%3C/name%3E%3C/myparent%3E%22, result);%0A    %7D%0A%0A    // reveal protected methods for test%0A    private static class Open extends RequestBuilder %7B%0A        public Open() %7B%0A            super(%22open%22);%0A        %7D%0A        public static String publicBuildXmlElement(String name, Object object) %7B%0A            return buildXMLElement(name, object);%0A        %7D%0A        public static String formatMap(String name, Map%3CString,Object%3E map) %7B%0A            return formatAsXML(name, map);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void list() %7B%0A       Open builder = new Open();%0A       List%3CString%3E items = new ArrayList();%0A       items.add(%22Chicken%22);%0A       items.add(%22Rabbit%22);%0A       String element = builder.publicBuildXmlElement(%22animals%22, items);%0A       assertEquals(%22%3Canimals type=%5C%22array%5C%22%3E%3Citem%3EChicken%3C/item%3E%3Citem%3ERabbit%3C/item%3E%3C/animals%3E%22, element);%0A    %7D%0A%0A    @Test%0A    public void map() %7B%0A        Open builder = new Open();%0A        Map%3CString, Object%3E map = new HashMap%3CString, Object%3E();%0A        map.put(%22color%22, %22green%22);%0A        map.put(%22insect%22, %22bee%22);%0A        String element = builder.formatMap(%22examples%22, map);%0A        assertEquals(%22%3Cexamples%3E%3Ccolor%3Egreen%3C/color%3E%3Cinsect%3Ebee%3C/insect%3E%3C/examples%3E%22, element);%0A    %7D%0A%7D%0A

Add tests to cover upcoming changes on RequestBuilder