### Question:
ReqIF10Parser { public ReqIF parseReqIFContent() { String wkFile = this.getReqIFFilename(); if (isRemoveToolExtensions()) { ToolExRemover remover = new ToolExRemover(); remover.setDeleteOnExit(this.isRemoveTemporaries()); wkFile = remover.remove(this.getReqIFFilename()); } registerEPackageStd(); ReqIF reqif = this.parse(wkFile); return reqif; }  ReqIF parseReqIFContent(); String getReqIFFilename(); void setReqIFFilename(String filename); boolean isRemoveToolExtensions(); void setRemoveToolExtensions(boolean removeToolExtensions); boolean isRemoveTemporaries(); void setRemoveTemporaries(boolean removeTemporaries); List<String> getDiagnostics();  }### Answer:
@Test public void testParseReqIFContent() { List<TestSpecObjectCollector> collectors = new ArrayList<TestSpecObjectCollector>(); final ReqIF reqif = parser.parseReqIFContent(); final String reqSpecTitle = reqif.getTheHeader().getTitle(); final EList<Specification> specs = reqif.getCoreContent() .getSpecifications(); String specLongName = ""; String specTitle = ""; if (specs.size() > 0) { Specification spec = specs.get(0); specLongName = spec.getLongName(); if (spec.getValues().size() > 0) { AttributeValue av = spec.getValues().get(0); AttributeDefinition ad = ReqIF10Util.getAttributeDefinition(av); if (ad != null) { specTitle = ReqIF10Util.getTheValue(av).toString(); } } final EList<SpecHierarchy> children = spec.getChildren(); if (children.size() > 0) { for (SpecHierarchy child : children) { if (child.getObject() != null) { SpecObject specObject = child.getObject(); if (!specObject.eIsProxy()) { TestSpecObjectCollector collector = new TestSpecObjectCollector(); collector.setIdentifier(specObject.getIdentifier()); collector.setSpecObjectTypeLongName(specObject .getType().getLongName()); if (specObject.getValues().size() > 0) { AttributeValue av1 = specObject.getValues() .get(0); AttributeDefinition ad1 = ReqIF10Util .getAttributeDefinition(av1); TestAttributeValueCollector attributeValueCollector = new TestAttributeValueCollector(); attributeValueCollector .setAttributeDefinitionLongName(ad1 .getLongName()); attributeValueCollector.setValue(ReqIF10Util .getTheValue(av1).toString()); collector.getAttributeValueCollectors().add( attributeValueCollector); } collectors.add(collector); } } } } } assertTrue(parser.getDiagnostics().isEmpty()); assertEquals("src/test/resources/UT_1000.reqif", parser.getReqIFFilename()); assertEquals(1, specs.size()); assertEquals("test", reqSpecTitle); assertEquals("Spec", specLongName); assertEquals("Test-Specification", specTitle); assertEquals(2, collectors.size()); assertEquals("31", collectors.get(0).getIdentifier()); assertEquals("35", collectors.get(1).getIdentifier()); assertEquals("HeadlineType", collectors.get(0) .getSpecObjectTypeLongName()); assertEquals("HeadlineType", collectors.get(1) .getSpecObjectTypeLongName()); assertEquals(1, collectors.get(0).getAttributeValueCollectors().size()); assertEquals("ID", collectors.get(0).getAttributeValueCollectors().get(0) .getAttributeDefinitionLongName()); assertEquals("Chapter 1", collectors.get(0) .getAttributeValueCollectors().get(0).getValue()); assertEquals(1, collectors.get(1).getAttributeValueCollectors().size()); assertEquals("ID", collectors.get(1).getAttributeValueCollectors().get(0) .getAttributeDefinitionLongName()); assertEquals("Chapter 2", collectors.get(1) .getAttributeValueCollectors().get(0).getValue()); }