'``Configuration.applications`` raises a
``ConfigurationError`` error if the volume dictionary contains
extra keys.'

def test_error_on_volume_extra_keys(self):

    config = dict(version=1, applications={u'mysql-hybridcluster': dict(image=u'busybox', volume={u'mountpoint': u'/var/mysql/data', u'bar': u'baz', u'foo': 215})})
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Invalid    volume    specification.    Unrecognised    keys:    bar,    foo.", exception.message)
