public void setResource(Resource resource) {
        this.resource = resource;
    }
@Test
    void testSetResource() {
        Permission permission = new Permission();
        Properties properties = new Properties();
        Resource resource = new Resource("NS", "G", "N", "TEST", properties);
        permission.setResource(resource);
        assertEquals("NS", permission.getResource().getNamespaceId());
        assertEquals("G", permission.getResource().getGroup());
        assertEquals("N", permission.getResource().getName());
        assertEquals("TEST", permission.getResource().getType());
        assertEquals(properties, permission.getResource().getProperties());
    }