@Test
    public void testWriteReadLongArrayEmpty() throws Exception
    {
        // Setup fixture.
        final long[] input = new long[0];

        // Execute system under test.
        new DefaultExternalizableUtil().writeLongArray(bus.getDataOutput(), input);
        final long[] result = new DefaultExternalizableUtil().readLongArray(bus.getDataInput());

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