### Question:
ExampleModelLoader implements MachineLearningModelLoader<ExampleModel> { @Override public DatasetSchema loadSchema(final Path modelPath) throws ModelLoadingException { throw new ModelLoadingException("You cannot load schemas with this provider."); } ExampleModelLoader(final int indexToPredict); @Override ExampleModel loadModel(final Path modelPath, final DatasetSchema schema); @Override List<ParamValidationError> validateForLoad(final Path modelPath,
                                                      final DatasetSchema schema,
                                                      final Map<String, String> params); @Override DatasetSchema loadSchema(final Path modelPath);  }### Answer:
@Test public void loadSchema() { final ExampleModelLoader loader = new ExampleModelLoader(0); assertThatThrownBy(() -> loader.loadSchema(get("dummypath"))) .as("Attempting to load a schema") .isInstanceOf(ModelLoadingException.class); }