@Test
public void testCreatePackageForAdd() throws Exception {
Packaging packaging = mock(Packaging.class);
PackageManager packageManager = mock(PackageManager.class);
VaultPackage vaultPackage = mock(VaultPackage.class);
File file = mock(File.class);
when(file.getAbsolutePath()).thenReturn("/path/to/file");
when(vaultPackage.getFile()).thenReturn(file);
MetaInf inf = mock(MetaInf.class);
when(vaultPackage.getMetaInf()).thenReturn(inf);
when(packageManager.assemble(any(Session.class), any(ExportOptions.class), any(File.class))).thenReturn(vaultPackage);
when(packaging.getPackageManager()).thenReturn(packageManager);
ResourceResolver resourceResolver = mock(ResourceResolver.class);
Session session = mock(Session.class);