NEW DELHI – After gaining independence from Britain in 1947, India was something of a poster child for the virtues of democracy – in stark contrast with China, which became a Communist dictatorship in 1949.