@Test
    public void typeTreeValid() {
        if (asset.metadata().typeTree().embedded()) {
            asset.metadata().typeTree().typeMap().forEach((path, root) -> {
                root.nodes().forEachData(type -> {
                    assertNotNull("Name string must be set", type.fieldName());
                    assertNotNull("Type string must be set", type.typeName());

                    if (type.isArray()) {
                        assertTrue("isArray should be set only if the type is 'Array' or 'TypelessData'",
                                type.typeName().equals("Array") || type.typeName().equals("TypelessData"));
                    }
                });
            });
        }
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-core/src/test/java/info/ata4/test/junity/SerializedFileTest.java