### Question:
MARCMapper { final List<Object> getMapping(String record) { MarcReader reader = new MarcXmlReader(IOUtils.toInputStream(record)); List<Object> list = new ArrayList<>(); while (reader.hasNext()) { list.add(mapRecordToMap(reader.next())); } return list; } private  MARCMapper(String mediaType);   MARCMapper(String mediaType, String cataloguingSourceUri, boolean simpleIdGenerator);   MARCMapper(String mediaType, Target cataloguingSource);   MARCMapper(String mediaType, Target cataloguingSource, boolean simpleIdGenerator); final String dataPrefix(String unprefixed);  }### Answer:
@Test public void it_can_map_marc() { String marc = new ResourceReader().readFile("BS_external_data.xml"); List<Object> mapping = new BSMarcMapper("Book", Target.BIBBI).getMapping(marc); assertNotNull(mapping); checkMapping("Book","BS_external_data.xml", "BS_external_data.json"); }