@Test
    public void testWriteReadStringListEmpty() throws Exception
    {
        // Setup fixture.
        final List<String> input = new ArrayList<>();

        // Execute system under test.
        new DefaultExternalizableUtil().writeStringList(bus.getDataOutput(), input);
        final List<String> result = new DefaultExternalizableUtil().readStringList(bus.getDataInput());

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