@Test
public void testValidAnchors() throws ImageProcessingException {

    Map config = new LinkedHashMap<>();
    YoloProcessor ypImageSaver = new YoloProcessor();
    List<Number> anchorList = Arrays.asList(1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
    config.put("pbFile", PB_FILE);
    config.put("labelFile", LABEL_FILE);
    config.put("anchors", anchorList);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with valid anchors: " + e.getClass().getName() + "::" + e.getMessage());
    }
    // Checking mix of integers and floating points
    anchorList = Arrays.asList(1, 1.0, 0.01, 1, 1.0, 0.01, 1, 1.0, 0.01, 1);
    config.remove("anchors");
    config.put("anchors", anchorList);
    try {
        ypImageSaver.setupImageProcessing(config, SOURCE_NAME, MODEL_DIRECTORY, testAuthToken, testVantiqServer);
    } catch (Exception e) {
        fail("Should not fail with invalid anchors: " + e.getClass().getName() + "::" + e.getMessage());
    }
}