### Question:
JarResourceFile extends FileSystemFile { @Override public int getPermissions () { if (executable) { return ShellConstants.CHMOD_744; } return ShellConstants.CHMOD_644; } JarResourceFile(Resource resource, boolean isExecutable); @Override boolean isFile(); @Override long getLength(); @Override InputStream getInputStream(); @Override long getLastAccessTime(); @Override long getLastModifiedTime(); @Override int getPermissions();  }### Answer:
@Test public void getPermissions () { assertEquals(0744, jarResourceFile.getPermissions()); JarResourceFile nonExecutable = new JarResourceFile(resource, false); assertEquals(0644, nonExecutable.getPermissions()); }