@@ -0,0 +1,2029 @@
+package pinterest;%0A%0Aimport com.google.gson.Gson;%0Aimport fields.PinFields;%0Aimport org.apache.commons.io.IOUtils;%0Aimport org.junit.Test;%0Aimport responses.Pin;%0Aimport responses.Pins;%0A%0Aimport java.io.IOException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class STestPinterest %7B%0A    private static final String PIN_ID = %22525091637782793357%22;%0A%0A    private final Pinterest pinterest = new Pinterest(%22ARp8HNzfw2scBtJqtYA57a8xFeAqFBzML4SnnEZCe9w6DeAJGAAAAAA%22);%0A%0A    @Test%0A    public void testPinWithFields() throws IOException %7B%0A        final Pin actualPin = pinterest.retrievePinWithFields(PIN_ID, new PinFields().setAllFields());%0A        final Pin expectedPin = new Gson().fromJson(loadFile(%22responses/CompletePinResponse.json%22), Pin.class);%0A%0A        assertEquals(expectedPin, actualPin);%0A    %7D%0A%0A    @Test%0A    public void testPinWithDefaultFields() throws IOException %7B%0A        final Pin actualPin = pinterest.retrievePinWithDefaultFields(PIN_ID);%0A        final Pin expectedPin = new Gson().fromJson(loadFile(%22responses/DefaultPinResponse.json%22), Pin.class);%0A%0A        assertEquals(expectedPin, actualPin);%0A    %7D%0A%0A    @Test%0A    public void testBoardWithDefaultFields() throws IOException %7B%0A        final Pins actualPins = pinterest.retrievePinsFromBoard(%22francisabila/all-about-me%22);%0A        final Pins expectedPins = new Gson().fromJson(loadFile(%22responses/DefaultBoardResponse.json%22), Pins.class);%0A%0A        assertEquals(expectedPins, actualPins);%0A    %7D%0A%0A    @Test%0A    public void testBoardWithAllFields() throws IOException %7B%0A        final Pins actualPins = pinterest.retrievePinsFromBoard(%22francisabila/all-about-me%22, new PinFields().setAllFields());%0A        final Pins expectedPins = new Gson().fromJson(loadFile(%22responses/CompleteBoardResponse.json%22), Pins.class);%0A%0A        assertEquals(expectedPins, actualPins);%0A    %7D%0A%0A    private static String loadFile(final String resource) throws IOException %7B%0A        return IOUtils.toString(Thread.currentThread().getContextClassLoader().getResourceAsStream(resource));%0A    %7D%0A%7D%0A

Add STest for API calls