### Question:
PropertiesAdminService extends RegistryAbstractAdmin implements
        IPropertiesAdminService<PropertiesBean,RetentionBean> { public void removeProperty(String path, String name) throws RegistryException { UserRegistry registry = (UserRegistry) getRootRegistry(); if (RegistryUtils.isRegistryReadOnly(registry.getRegistryContext())) { return; } Resource resource = registry.get(path); resource.removeProperty(name); registry.put(resource.getPath(), resource); resource.discard(); }  PropertiesBean getProperties(String path, String viewProps); void setProperty(String path, String name, String value); void updateProperty(String path, String name, String value, String oldName); void removeProperty(String path, String name); boolean setRetentionProperties(String path, RetentionBean bean); RetentionBean getRetentionProperties(String path);  }### Answer:
@Test public void testRemoveProperty() throws Exception { System.setProperty("carbon.repo.write.mode", "true"); resource.setProperty("mount.path", "_system_config"); PropertiesAdminService adminService = new PropertiesAdminService(); adminService.removeProperty(resourcePath, "mount.path"); PropertiesBean propertiesBean = adminService.getProperties(resourcePath, "true"); assertArrayEquals(new String[]{}, propertiesBean.getLifecycleProperties()); Property[] properties = propertiesBean.getProperties(); assertEquals(0, properties.length); assertArrayEquals(new String[]{}, propertiesBean.getSysProperties()); assertArrayEquals(new String[]{}, propertiesBean.getValidationProperties()); System.clearProperty("carbon.repo.write.mode"); }