class CCSManageSvImpl implements ICCSManageSv {

    @Override
    public void delete(CCSOperationParam param) throws PaasException {
        param.validate();
        if (!exists(param))
            return;

        CcsServiceUserConfig config = getCcsServiceUserConfig(param.getUserId(), param.getServiceId());

        ZKClient client = null;
        try {
            client = ZookeeperClientUtil.getZkClientFromPool(config.getZkAddress(), config.getZkUserName(),
                    CiperUtil.decrypt(ConfigCenterConstants.operators, config.getZkPassword()),config.getServiceId());
            client.deleteNode(appendCustomUserRootNode(param.getUserId(), param.getServiceId())
                    + param.getPath());
        } catch (Exception e) {
        	logger.error(e.getMessage(),e);
            throw new PaasException(ResourceUtil.getMessage(BundleKeyConstants.CONFIG_ERROR), e);
        }
    }

}

class CCSManageSvImplTest {

    private String userId;
    private String serviceId;
    @Autowired
    private ICCSManageSv manageSv;
    @Autowired
    private IConfigCenterServiceManageSv iConfigCenterServiceManageSv;

    @Test
    public void testDelete() throws Exception {

        CCSOperationParam ccsOperationParam = new CCSOperationParam();
        ccsOperationParam.setUserId(userId);
        ccsOperationParam.setServiceId(serviceId);
        ccsOperationParam.setPath("/test/testPath");
        manageSv.delete(ccsOperationParam);
        assertFalse(manageSv.exists(ccsOperationParam));
    }

}