public void addConfigDefinitionsFromBundle(Bundle bundle, List<Bundle> bundlesAdded) {
        try {
            checkAndCopyUserDefs(bundle, bundlesAdded);
        } catch (IOException e) {
            throw new IllegalArgumentException("Unable to add config definitions from bundle " + bundle.getFile().getAbsolutePath(), e);
        }
    }
@Test
    public void require_that_defs_are_added() throws IOException {
        File defDir = temporaryFolder.newFolder();
        ConfigDefinitionDir dir = new ConfigDefinitionDir(defDir);
        Bundle bundle = new Bundle(new JarFile(bundleFile), bundleFile);
        assertEquals(0, defDir.listFiles().length);
        dir.addConfigDefinitionsFromBundle(bundle, new ArrayList<>());
        assertEquals(1, defDir.listFiles().length);
    }