Permission { public void addPermissionsByName(final String... list) { for (final String perm : list) { final Type type = Type.valueOf(perm); if (type != null) { addPermission(type); } } } Permission();  Permission(final int flags);  Permission(final Type... list); void addPermissions(final Permission perm); void setPermission(final Type type, final boolean set); void setPermissions(final int flags); void addPermission(final Type... list); void addPermissionsByName(final String... list); void addPermissions(final Collection<Type> list); void addPermissionsByName(final Collection<String> list); Set<Type> getTypes(); void removePermissions(final Type... list); void removePermissionsByName(final String... list); boolean isPermissionSet(final Type permission); boolean isPermissionNameSet(final String permission); String[] toStringArray(); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj); int toFlags();  }
@Test public void testEmptyPermissionCreation() throws Exception { final Permission permission = new Permission(); permission.addPermissionsByName(new String[]{}); }