@Test
public void testCreateArchivePermissionsPreserved() throws Exception {

    setPermissionsTo700();
    archiver.createArchive();
    assertEquals(0700, getTarEntries().get("dir2/testPermissions").getMode());
}