def test_add_multiple_volume_groups(self):
        lvsubsystem = lvmlib.LVSubsystem(None, mock.Mock())

        lvsubsystem.add_volume_group('vg1')
        lvsubsystem.add_volume_group('vg2')
        lvsubsystem.add_volume_group('vg3')
        vg1 = lvsubsystem.get_volume_group('vg1')
        vg2 = lvsubsystem.get_volume_group('vg2')
        vg3 = lvsubsystem.get_volume_group('vg3')

        self.assertEquals('vg1', vg1.name)
        self.assertEquals('vg2', vg2.name)
        self.assertEquals('vg3', vg3.name)