static <T extends Type> String encodeArrayValues(Array<T> value) {
        StringBuilder result = new StringBuilder();
        for (Type type : value.getValue()) {
            result.append(encode(type));
        }
        return result.toString();
    }
@Test
    public void testStaticStructStaticArray() {
        StaticArray3<Bar> array =
                new StaticArray3<>(
                        Bar.class,
                        new Bar(BigInteger.ONE, BigInteger.ZERO),
                        new Bar(BigInteger.ONE, BigInteger.ZERO),
                        new Bar(BigInteger.ONE, BigInteger.ZERO));

        assertEquals(
                TypeEncoder.encodeArrayValues(array),
                ("0000000000000000000000000000000000000000000000000000000000000001"
                        + "0000000000000000000000000000000000000000000000000000000000000000"
                        + "0000000000000000000000000000000000000000000000000000000000000001"
                        + "0000000000000000000000000000000000000000000000000000000000000000"
                        + "0000000000000000000000000000000000000000000000000000000000000001"
                        + "0000000000000000000000000000000000000000000000000000000000000000"));
    }