### Question:
HashedPosixStorageLocation extends HashedFilesystemStorageLocation { public void setPermissions(String perms) { if (!PERMS_PATTERN.matcher(perms).matches()) { throw new IllegalArgumentException("Invalid permissions value " + perms); } int mode = Integer.parseInt(perms, 8); permissions = new HashSet<>(); for (int mask: PERM_MAPPING.keySet()) { if (mask == (mode & mask)) { permissions.add(PERM_MAPPING.get(mask)); } } }  void setPermissions(String perms); Set<PosixFilePermission> getPermissions(); @Override StorageType getStorageType(); static final String TYPE_NAME; }### Answer:
@Test(expected = IllegalArgumentException.class) public void setPermissionsInvalidFormat() { posixLoc.setPermissions("what"); }