PermissionParser.getPermission(
"(java.io.FilePermission \"/\" \"read\")"));
Assert.assertEquals(filePermission,
PermissionParser.getPermission(
filePermission.toString()));
Assert.assertEquals(new AllPermission(),
PermissionParser.getPermission(
"(java.security.AllPermission)"));
Assert.assertEquals(new AllPermission(),
PermissionParser.getPermission(
"(java.security.AllPermission \"\")"));
Assert.assertEquals(new AllPermission(),
PermissionParser.getPermission(
"(java.security.AllPermission \"\" \"\")"));
}