### Question:
FileBasedComponent implements DeclaringComponent { @Override public String getComponent() { return source.getParentFile().getName(); }  static FileBasedComponent fileSource(File file, int lineNumber, boolean yaml,
                                                String configType, String environment); @Override String getComponent(); @Override String toString();  }### Answer:
@Test void parentComponent() { assertEquals("comp", source.getComponent()); }