@@ -0,0 +1,1367 @@
+package com.github.onsdigital.perkin.helper;%0A%0Aimport com.github.onsdigital.perkin.json.Survey;%0Aimport com.github.onsdigital.perkin.json.SurveyParser;%0Aimport com.github.onsdigital.perkin.json.SurveyTemplate;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0A/**%0A * Created by ian on 01/04/2016.%0A */%0Apublic class TemplateLoaderTest %7B%0A%0A    private TemplateLoader loader;%0A    %0A    private static String TEST_TEMPLATE_JSON = %22templates/023.0203.survey.json%22;%0A    private static String TEST_TEMPLATE_PDF = %22templates/023.0203.pdf.fo%22;%0A    private static String TEST_SURVEY_JSON = %22survey.ftp.json%22;%0A%0A    @Before%0A    public void setUp() %7B%0A        loader = TemplateLoader.getInstance();%0A    %7D%0A%0A    @Test%0A    public void shouldLoadTemplate() throws IOException %7B%0A        String surveyContent = FileHelper.loadFile(TEST_TEMPLATE_JSON);%0A%0A        assertThat(surveyContent, is(loader.getTemplate(TEST_TEMPLATE_JSON)));%0A    %7D%0A%0A    @Test%0A    public void shouldLoadPdfTemplate() throws IOException %7B%0A        String pdfTemplateContent = FileHelper.loadFile(TEST_TEMPLATE_PDF);%0A        Survey testSurvey = new SurveyParser().parse(FileHelper.loadFile(TEST_SURVEY_JSON));%0A%0A        assertThat(pdfTemplateContent, is(loader.getPdfTemplate(testSurvey)));%0A    %7D%0A%7D%0A

Add some tests for new template loader class