@BeforeClass
  public static void setupTestData() throws IOException, ClassNotFoundException {

    ClassPathResource kivwsAdministrationCode = new ClassPathResource("hsaadministrationform.xml");
    ClassPathResource kivwsBusinessClassificationCode =
        new ClassPathResource("hsabusinessclassificationcode.xml");
    ClassPathResource kivwsCountyCode = new ClassPathResource("hsacountycode.xml");
    ClassPathResource kivwsLanguageKnowledgeCode =
        new ClassPathResource("hsalanguageknowledgecode.xml");
    ClassPathResource kivwsManagementCode = new ClassPathResource("hsamanagementcode.xml");
    ClassPathResource kivwsMunicipalityCode = new ClassPathResource("hsamunicipalitycode.xml");
    ClassPathResource kivwsSpecialityCode = new ClassPathResource("hsaspecialitycode.xml");
    ClassPathResource kivwsPATitle = new ClassPathResource("patitlecode.xml");
    ClassPathResource kivwsVgrAO3Kod = new ClassPathResource("vgrao3kod.xml");
    ClassPathResource kivwsVgrCareType = new ClassPathResource("vgrcaretype.xml");

    XStream xStream = new XStream();
    InputStream inputStream = kivwsAdministrationCode.getInputStream();
    ObjectInputStream kivwsAdministrationCodeInputStream =
        xStream.createObjectInputStream(inputStream);
    ObjectInputStream kivwsBusinessClassificationCodeInputStream =
        xStream.createObjectInputStream(kivwsBusinessClassificationCode.getInputStream());
    ObjectInputStream kivwsCountyCodeInputStream =
        xStream.createObjectInputStream(kivwsCountyCode.getInputStream());
    ObjectInputStream kivwsLanguageKnowledgeCodeInputStream =
        xStream.createObjectInputStream(kivwsLanguageKnowledgeCode.getInputStream());
    ObjectInputStream kivwsManagementCodeInputStream =
        xStream.createObjectInputStream(kivwsManagementCode.getInputStream());
    ObjectInputStream kivwsMunicipalityCodeInputStream =
        xStream.createObjectInputStream(kivwsMunicipalityCode.getInputStream());
    ObjectInputStream kivwsSpecialityCodeInputStream =
        xStream.createObjectInputStream(kivwsSpecialityCode.getInputStream());
    ObjectInputStream kivwsPATitleInputStream =
        xStream.createObjectInputStream(kivwsPATitle.getInputStream());
    ObjectInputStream kivwsVgrAO3KodInputStream =
        xStream.createObjectInputStream(kivwsVgrAO3Kod.getInputStream());
    ObjectInputStream kivwsVgrCareTypeInputStream =
        xStream.createObjectInputStream(kivwsVgrCareType.getInputStream());

    kivwsAdministrationReadObject =
        (String2StringMap) kivwsAdministrationCodeInputStream.readObject();
    kivwsBussninessReadObject =
        (String2StringMap) kivwsBusinessClassificationCodeInputStream.readObject();
    kivwsCountyReadObject = (String2StringMap) kivwsCountyCodeInputStream.readObject();
    kivwsLanguageReadObject = (String2StringMap) kivwsLanguageKnowledgeCodeInputStream.readObject();
    kivwsManagementReadObject = (String2StringMap) kivwsManagementCodeInputStream.readObject();
    kivwsMunicipalityReadObject = (String2StringMap) kivwsMunicipalityCodeInputStream.readObject();
    kivwsSpecialityReadObject = (String2StringMap) kivwsSpecialityCodeInputStream.readObject();
    kivwsPATitleReadObject = (String2StringMap) kivwsPATitleInputStream.readObject();
    kivwsVgrAO3KodReadObject = (String2StringMap) kivwsVgrAO3KodInputStream.readObject();
    kivwsVgrCareTypeReadObject = (String2StringMap) kivwsVgrCareTypeInputStream.readObject();

    KivwsCodeNameTableMapper kivwsCodeTableMapper = new KivwsCodeNameTableMapper();
    kivwsCodeTableMapper.mapFromContext(kivwsAdministrationReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(
        KivwsCodeTableName.HSA_ADMINISTRATION_FORM, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsBussninessReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(
        KivwsCodeTableName.HSA_BUSINESSCLASSIFICATION_CODE,
        kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsCountyReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(KivwsCodeTableName.HSA_COUNTY_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsLanguageReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(
        KivwsCodeTableName.HSA_LANGUAGE_KNOWLEDGE_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsManagementReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(
        KivwsCodeTableName.HSA_MANAGEMENT_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsMunicipalityReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(
        KivwsCodeTableName.HSA_MUNICIPALITY_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsSpecialityReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(
        KivwsCodeTableName.HSA_SPECIALITY_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsPATitleReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(KivwsCodeTableName.PA_TITLE_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsVgrAO3KodReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(KivwsCodeTableName.VGR_AO3_CODE, kivwsCodeTableMapper.getCodeTableContent());

    kivwsCodeTableMapper.mapFromContext(kivwsVgrCareTypeReadObject);
    kivwsCodeTableMapper.getCodeTableContent();
    codeTables.put(KivwsCodeTableName.CARE_TYPE, kivwsCodeTableMapper.getCodeTableContent());
  }
 @Test(expected = RuntimeException.class)
 public void testException() {
   KivwsCodeNameTableMapper kivwsCodeNameTableMapper = new KivwsCodeNameTableMapper();
   kivwsCodeNameTableMapper.mapFromContext("Not valid class type");
 }