@Test
public void putPermissionNoSuchPermission() throws Exception {

    Permissions permissions = new Permissions();
    expectedException.expect(NoSuchPermission.class);
    permissions.putPermission("NotAPerm");
}