@Test
    public void testSuccessHasNoException() {

        try {
            GuacamoleStatus.SUCCESS.toException("Test message");
            Assert.fail("GuacamoleStatus.SUCCESS must throw "
                    + "IllegalStateException for toException().");
        }
        catch (IllegalStateException e) {
            // Expected
        }

    }
Verifies that the {@link SUCCESS} status code does NOT translate to a
GuacamoleException, but instead throws an IllegalStateException.
guacamole-common/src/test/java/org/apache/guacamole/protocol/GuacamoleStatusTest.java