@Test
    public void testVersionEquals() {

        GuacamoleProtocolVersion version;

        version = GuacamoleProtocolVersion.parseVersion("VERSION_012_102_398");
        Assert.assertTrue(version.equals(version));
        Assert.assertTrue(version.equals(new GuacamoleProtocolVersion(12, 102, 398)));
        Assert.assertFalse(version.equals(new GuacamoleProtocolVersion(12, 102, 399)));
        Assert.assertFalse(version.equals(new GuacamoleProtocolVersion(12, 103, 398)));
        Assert.assertFalse(version.equals(new GuacamoleProtocolVersion(11, 102, 398)));

        version = GuacamoleProtocolVersion.parseVersion("VERSION_1_0_0");
        Assert.assertTrue(version.equals(GuacamoleProtocolVersion.VERSION_1_0_0));
        Assert.assertFalse(version.equals(GuacamoleProtocolVersion.VERSION_1_1_0));

        version = GuacamoleProtocolVersion.parseVersion("VERSION_1_1_0");
        Assert.assertTrue(version.equals(GuacamoleProtocolVersion.VERSION_1_1_0));
        Assert.assertFalse(version.equals(GuacamoleProtocolVersion.VERSION_1_0_0));

    }
Verifies that versions can be tested for equality using equals().
guacamole-common/src/test/java/org/apache/guacamole/protocol/GuacamoleProtocolVersionTest.java