### Question:
Permissions { public void putPermission(String next) { try { permissions.add(ACLEntry.valueOf(next)); } catch (IllegalArgumentException e) { throw new NoSuchPermission(); } }  void putPermission(String next); boolean hasPermission(String permissionName); boolean hasPermission(ACLEntry permission);  }### Answer:
@Test public void putPermissionNoSuchPermission() throws Exception { Permissions permissions = new Permissions(); expectedException.expect(NoSuchPermission.class); permissions.putPermission("NotAPerm"); }