### Question:
FileParsingElementLoader implements ConfigLoader, ConfigConstants { public List<ParsingElement> load(boolean reload) { if (isLoaded() && !reload) { return getParsingElements(); } Map<String, Object> map = configLoader.readConfiguration(); fillParameters(map); MapWrapper mainMap = new MapWrapper(map, null); extendToExternalConfig(mainMap); mainMap.getField(RESULT, true); fillParameters(map); fillFunctions(map); fillDefinitions(map); fillTransformation(map); fillRoot(map); isLoaded = true; return getParsingElements(); } FileParsingElementLoader(ConfigLoaderStrategy configLoader);  FileParsingElementLoader(ConfigLoaderStrategy configLoader, ExpressionResolver expressionResolver, ValueTransformer valueTransformer, FunctionContext functionContext, TypeAdaptorFactory typeAdaptorFactory, Map<String, Object> params); List<ParsingElement> load(boolean reload); Map<String, Object> getParams(); void setParams(Map<String, Object> params); List<ParsingElement> getParsingElements(); void setParsingElements(List<ParsingElement> parsingElements); ExpressionResolver getExpressionResolver(); void setExpressionResolver(ExpressionResolver expressionResolver); @Override boolean isLoaded(); Map<String, Object> getDefinitions(); void setDefinitions(Map<String, Object> fragments); @Override FunctionContext getFunctionContext(); @Override ValueTransformer getValueTransformer(); TypeAdaptorFactory getTypeAdaptorFactory(); void setTypeAdaptorFactory(TypeAdaptorFactory typeAdaptorFactory);  }### Answer:
@Test public void testRequiredFields() throws IOException { FileParsingElementLoader parsingElementLoader = TestUtils.prepareParsingElementFile(pathPlace, "requiredFieldTest.yaml"); try { parsingElementLoader.load(true); } catch (InvalidParameterException e) { assertTrue(true); } }
@Test public void testReviewLoading() throws IOException { FileParsingElementLoader parsingElementLoader = TestUtils.prepareParsingElementFile(pathPlace, "parsingElementTest.yaml"); List<ParsingElement> load = parsingElementLoader.load(true); TestUtils.initXmlParsingAbsolutePath(load); ParsingElement root = load.get(0); assertEquals(3, root.getChildren().size()); assertEquals("object", root.getType()); assertEquals(ObjectTypeAdapter.class, root.getTypeAdapter().getClass()); ParsingElement reviews = root.getChildren().get(2); testReview(reviews); }
@Test public void testElementLoading() throws IOException { FileParsingElementLoader parsingElementLoader = TestUtils.prepareParsingElementFile(pathPlace, "parsingElementTest.yaml"); List<ParsingElement> load = parsingElementLoader.load(true); TestUtils.initXmlParsingAbsolutePath(load); ParsingElement root = load.get(0); assertEquals(3, root.getChildren().size()); assertEquals(0, root.getOrder()); assertEquals("object", root.getType()); assertEquals(ObjectTypeAdapter.class, root.getTypeAdapter().getClass()); ParsingElement vendor = root.getChildren().get(0); testFirstVendor(vendor); vendor = root.getChildren().get(1); assertEquals(2, vendor.getOrder()); assertEquals("array", vendor.getType()); assertEquals(ArrayTypeAdapter.class, vendor.getTypeAdapter().getClass()); assertEquals("vendor", vendor.getFieldName()); assertEquals("deleted_merchant", vendor.getPath()); assertEquals("/feed/deleted_merchants", vendor.getAbsolutePath()); assertEquals("insertVendor", vendor.getFunction().getName()); }