@Test
public void testValidConfig() {

    Map config = new LinkedHashMap<>();
    YoloProcessor ypImageSaver = new YoloProcessor();
    List<Number> anchorList = Arrays.asList(1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
    // Meta file included, no label file
    config.put("pbFile", PB_FILE);
    config.put("metaFile", META_FILE);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with meta file but no label file: " + e.getClass().getName() + "::" + e.getMessage());
    }
    // Meta file included and anchors included
    config.put("anchors", anchorList);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with meta file and anchors: " + e.getClass().getName() + "::" + e.getMessage());
    }
    // Label file included, no meta file
    config.remove("metaFile");
    config.remove("anchors");
    config.put("labelFile", LABEL_FILE);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with label file but no meta file: " + e.getClass().getName() + "::" + e.getMessage());
    }
    // Label file included and anchors included
    config.put("anchors", anchorList);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with label file and anchors: " + e.getClass().getName() + "::" + e.getMessage());
    }
    // Label and meta file included, anchors included
    config.put("metaFile", META_FILE);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with label and meta file, and anchors: " + e.getClass().getName() + "::" + e.getMessage());
    }
}