public void expandRegexMapping(Model<T> model) {
        expandRegexMapping(model.getFeatureIDMap());
    }
@Test
    public void testInvalidRegexMapping() {
        List<String> fieldNames = Arrays.asList("Armadillos", "Armadas", "Archery", "Battleship", "Battles", "Carrots", "Label");

        Map<String, FieldProcessor> fixed = new HashMap<>();

        fixed.put("Battles", new IdentityProcessor("Battles"));

        Map<String, FieldProcessor> regex = new HashMap<>();

        try {
            regex.put("Arma*", new IdentityProcessor("Arma*"));
            regex.put("Monkeys", new IdentityProcessor("Monkeys"));
            RowProcessor<MockOutput> rowProcessor = new RowProcessor<>(Collections.emptyList(), null, new MockResponseProcessor("Label"), fixed, regex, new HashSet<>());
            rowProcessor.expandRegexMapping(fieldNames);
            fail("Should have thrown an IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // pass
        } catch (Exception e) {
            fail("Incorrect exception thrown.");
        }

        regex.clear();

        try {
            regex.put("Battle*", new IdentityProcessor("Battle*"));
            RowProcessor<MockOutput> rowProcessor = new RowProcessor<>(Collections.emptyList(), null, new MockResponseProcessor("Label"), fixed, regex, new HashSet<>());
            rowProcessor.expandRegexMapping(fieldNames);
            fail("Should have thrown an IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // pass
        } catch (Exception e) {
            fail("Incorrect exception thrown.");
        }

        regex.clear();

        try {
            regex.put("Arm*", new IdentityProcessor("Arm*"));
            regex.put("Armadil*", new IdentityProcessor("Armadil*"));
            RowProcessor<MockOutput> rowProcessor = new RowProcessor<>(Collections.emptyList(), null, new MockResponseProcessor("Label"), fixed, regex, new HashSet<>());
            rowProcessor.expandRegexMapping(fieldNames);
            fail("Should have thrown an IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // pass
        } catch (Exception e) {
            fail("Incorrect exception thrown.");
        }
    }