BEIJING — It is a familiar tale of modern China with a sadly predictable denouement. A group of people wake up to find demolition notices affixed to their homes. After they reject the government’s compensation as too meager, a dark campaign of harassment ensues. The bulldozers arrive in the dead of night. Score another win for the boundless authority of the state.

But the struggle unfolding at Huaxiang World Famous Garden, a gated, suburban-style community on the exurban fringe of the capital, is not like a majority of redevelopment battles that each year lead to the forced eviction and dispossession of countless families.

The residents involved are by and large middle class and privileged — doctors, financiers, retired government bureaucrats — who thought they were immune to such capriciousness. Among their ranks is one of China’s most successful fiction writers, Yan Lianke, whose satirical novels about famine, AIDS and the cruelties of the Cultural Revolution plumb the suffering of ordinary Chinese.

Just as notable is that their subdivision is new, the oldest house no more than five years old. At least three of the homes were completed this year. The local district government, however, says the residences and their pampered gardens must give way to a road-widening project that was announced in July. Everyone was given just three weeks to leave.