@Override
    public String getTypeAsString() {
        String type;
        if (!value.isEmpty() && StructType.class.isAssignableFrom(value.get(0).getClass())) {
            type = value.get(0).getTypeAsString();
        } else {
            type = AbiTypes.getTypeAString(getComponentType());
        }
        return type + "[" + value.size() + "]";
    }
@Test
    public void testEmptyStaticArray() {
        final StaticArray<Address> array =
                new StaticArray0<>(Address.class, Collections.emptyList());

        assertEquals(Address.TYPE_NAME + "[0]", array.getTypeAsString());
    }