@Test
    public void testWriteReadBoolean() throws Exception
    {
        // Setup fixture.
        final boolean input = true;

        // Execute system under test.
        new DefaultExternalizableUtil().writeBoolean(bus.getDataOutput(), input);
        final boolean result = new DefaultExternalizableUtil().readBoolean(bus.getDataInput());

        // Verify result.
        assertEquals( input, result );
    }
Asserts that the process of writing and reading a boolean value through the {@link DefaultExternalizableUtil}
implementation results in a value that is equal to the original input.
xmppserver/src/test/java/org/jivesoftware/util/cache/DefaultExternalizableUtilTest.java