RemoteFile implements Serializable { public boolean isEmpty() { return this.empty; } RemoteFile(String name);  RemoteFile(RemoteFile parent, String name); boolean isEmpty(); RemoteFile getParent(); void setParent(RemoteFile parent); String getName(); void setName(String name); boolean isRoot(); boolean isFile(); RemoteFile setFile(boolean file); boolean isFolder(); RemoteFile setFolder(boolean folder); @Override String toString();  }
@Test public void isEmptyWithOnlyName() { final RemoteFile parent = new RemoteFile("parent"); assertTrue(parent.isEmpty()); }
@Test public void isNotEmptyForParent() { final RemoteFile parent = new RemoteFile("parent"); final RemoteFile child = new RemoteFile(parent, "child"); assertFalse(parent.isEmpty()); }