### Question:
Config implements DiagnosticsProvider, Configuration { @Nonnull public static Builder fromFile( @Nullable final File configFile ) { return builder().withFile( configFile ); } private  Config( File configFile,
            boolean throwOnFileLoadFailure,
            Map<String,String> initialSettings,
            Map<String,String> overriddenDefaults,
            Collection<ConfigurationValidator> additionalValidators,
            List<LoadableConfig> settingsClasses ); @Nonnull static Builder builder(); @Nonnull static Builder fromFile( @Nullable final File configFile ); @Nonnull static Builder fromFile( @Nonnull final Path configFile ); @Nonnull static Builder fromSettings( final Map<String,String> initialSettings ); @Nonnull static Config defaults(); @Nonnull static Config defaults( @Nonnull final Map<String,String> initialSettings ); @Nonnull static Config defaults( @Nonnull final Setting<?> setting, final String value ); @Override T get( Setting<T> setting ); boolean isConfigured( Setting<?> setting ); Set<String> identifiersFromGroup( Class<?> groupClass ); void augment( Map<String,String> settings ); void augment( String setting, String value ); void augment( Setting<?> setting, String value ); void augment( Config config ); void augmentDefaults( Setting<?> setting, String value ); void setLogger( Log log ); Optional<String> getRaw( @Nonnull String key ); Map<String,String> getRaw(); Optional<Object> getValue( @Nonnull String key ); void updateDynamicSetting( String setting, String update, String origin ); void registerDynamicUpdateListener( Setting<V> setting, BiConsumer<V,V> listener ); Map<String,ConfigValue> getConfigValues(); @Override String getDiagnosticsIdentifier(); @Override void acceptDiagnosticsVisitor( Object visitor ); @Override void dump( DiagnosticsPhase phase, Logger logger ); @Nonnull Set<String> allConnectorIdentifiers(); @Nonnull Set<String> allConnectorIdentifiers( @Nonnull Map<String,String> params ); @Nonnull List<BoltConnector> boltConnectors(); @Nonnull List<BoltConnector> enabledBoltConnectors(); @Nonnull List<BoltConnector> enabledBoltConnectors( @Nonnull Map<String,String> params ); @Nonnull List<HttpConnector> httpConnectors(); @Nonnull List<HttpConnector> enabledHttpConnectors(); @Override String toString(); static final String DEFAULT_CONFIG_FILE_NAME; }### Answer:
@Test( expected = ConfigLoadIOException.class ) public void mustThrowIfConfigFileCouldNotBeFound() { File confFile = testDirectory.file( "test.conf" ); Config.fromFile( confFile ).build(); }