@Test
    public void testUnannotatedEnumBadValue() {

        try {

            new EnumGuacamoleProperty<Vegetable>(
                    "potato", Vegetable.POTATO,
                    "carrot", Fish.TROUT
            ) {

                @Override
                public String getName() {
                    return "favorite-vegetable";
                }

            };

            fail("EnumGuacamoleProperty should not accept values from the wrong enum.");

        }
        catch (IllegalArgumentException e) {
            // Success
        }

    }
Verifies that an IllegalArgumentException is thrown if constants from
the wrong enum are provided in an explicit mapping.
guacamole-ext/src/test/java/org/apache/guacamole/properties/EnumGuacamolePropertyTest.java