@@ -0,0 +1,1283 @@
+package com.plnyyanks.tba.apiv2.test;%0A%0Aimport com.plnyyanks.tba.apiv2.RetrofitConverter;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0A%0Aimport retrofit.converter.ConversionException;%0Aimport retrofit.mime.TypedOutput;%0Aimport retrofit.mime.TypedString;%0A%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertNull;%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A * Created by phil on 5/5/15.%0A */%0Apublic class RetrofitConverterTest %7B%0A    RetrofitConverter converter;%0A%0A    @Before%0A    public void setup()%7B%0A        converter = new RetrofitConverter();%0A    %7D%0A%0A    @Test(expected = ConversionException.class)%0A    public void testConversionException() throws ConversionException %7B%0A        TypedString string = new TypedString(%22%7Bsaldkj%22); // bad json%0A        converter.fromBody(string, String.class);%0A    %7D%0A%0A    @Test%0A    public void testToBody()%7B%0A        TypedOutput output = converter.toBody(%22%5B'hello'%5D%22);%0A        assertNotNull(output);%0A        assertNull(output.fileName());%0A        assertNotNull(output.mimeType());%0A        assertTrue(output.length() %3E 0);%0A        try %7B%0A            output.writeTo(System.out);%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A            assertTrue(false);%0A        %7D%0A    %7D%0A%7D%0A

Test RetrofitConverter