@Test
    public void testWriteReadLong() throws Exception
    {
        // Setup fixture.
        final long input = Long.MIN_VALUE;

        // Execute system under test.
        new DefaultExternalizableUtil().writeLong(bus.getDataOutput(), input);
        final long result = new DefaultExternalizableUtil().readLong(bus.getDataInput());

        // Verify result.
        assertEquals( input, result );
    }
Asserts that the process of writing and reading a long 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