### Question:
ExampleModelLoader implements MachineLearningModelLoader<ExampleModel> { @Override public List<ParamValidationError> validateForLoad(final Path modelPath, final DatasetSchema schema, final Map<String, String> params) { return ImmutableList.of(); } 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 validateForLoad() { final ExampleModelLoader loader = new ExampleModelLoader(0); final Path modelPath = get("dummy"); final DatasetSchema testSchema = TestDatasetSchemaBuilder.builder().withCategoricalFields(1).build(); assertThat(loader.validateForLoad(modelPath, testSchema, of())) .as("The result of calling a validation on the Example Loader") .isEmpty(); }