### Question:
Package { public void install( Path installRoot ) throws IOException { for ( File file : files ) file.install( installRoot ); } Package( String id ); String getId(); Set<File> getFiles(); void addFile( File file ); void addFileIfNotExists( File file ); void install( Path installRoot ); void writeDescriptor( Path descriptorPath ); @Override String toString(); @Override int hashCode(); @Override boolean equals( Object rhs ); static String MAIN; }### Answer:
@Test public void testEmpty() throws Exception { Package pkg = new Package( "my-id" ); pkg.install( installRoot ); assertDirectoryStructure(); assertDescriptorEquals( pkg ); }