public void testMultipleArrayMultipleHit() {
SegmentConstantPoolArrayCache arrayCache = new SegmentConstantPoolArrayCache();
String arrayOne[] = {"Zero", "Shared", "Two", "Shared", "Shared"};
String arrayTwo[] = {"Shared", "One", "Shared", "Shared", "Shared"};
List listOne = arrayCache.indexesForArrayKey(arrayOne, "Shared");
List listTwo = arrayCache.indexesForArrayKey(arrayTwo, "Shared");
// Make sure we're using the cached values. First trip
// through builds the cache.
listOne = arrayCache.indexesForArrayKey(arrayOne, "Two");
listTwo = arrayCache.indexesForArrayKey(arrayTwo, "Shared");