NbGradleProjectTree implements Serializable { public File getProjectDir() { return genericProperties.getProjectDir(); } NbGradleProjectTree(
            GenericProjectProperties genericProperties,
            Collection<GradleTaskID> tasks,
            Collection<NbGradleProjectTree> children);  NbGradleProjectTree(GradleProjectTree tree); int getNumberOfSubprojects(); NbGradleProjectTree getParent(NbGradleProjectTree root); static NbGradleProjectTree createEmpty(Path projectDir, ScriptFileProvider scriptProvider); GenericProjectProperties getGenericProperties(); Collection<GradleTaskID> getTasks(); String getProjectName(); String getProjectFullName(); File getProjectDir(); Collection<NbGradleProjectTree> getChildren(); NbGradleProjectTree findByPath(String path);  }
@Test public void testSerialization() throws ClassNotFoundException { NbGradleProjectTree child1 = createTree("child1"); NbGradleProjectTree child2 = createTree("child1"); NbGradleProjectTree source = createTree("testapp", child1, child2); byte[] serialized = SerializationUtils.serializeObject(source); NbGradleProjectTree deserialized = (NbGradleProjectTree)SerializationUtils.deserializeObject(serialized, SerializationCache.NO_CACHE); assertEquals(source.getProjectDir().toString(), deserialized.getProjectDir().toString()); }