@Test
    public void testUnannotatedEnumBadLength() {

        try {

            new EnumGuacamoleProperty<Vegetable>(
                    "potato", Vegetable.POTATO,
                    1, Vegetable.CARROT, 2
            ) {

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

            };

            fail("EnumGuacamoleProperty should not accept additional key/value pairs from an array that is not even in length.");

        }
        catch (IllegalArgumentException e) {
            // Success
        }

    }
Verifies that an IllegalArgumentException is thrown if the length of the
{@code additional} array is not even.
guacamole-ext/src/test/java/org/apache/guacamole/properties/EnumGuacamolePropertyTest.java