@Test
void loadWithInvalidCharName() throws UnsupportedEncodingException {

    Document doc = DocumentTools.INSTANCE.getDocumentBuilder().newDocument();
    Bundle bundle = new Bundle();
    final String encodedRoot = URLEncoder.encode(Folder.ROOT_FOLDER_NAME, "UTF-8");
    final String encodedTestFolder =  URLEncoder.encode(TEST_FOLDER_1 + "/1", "UTF-8");
    loader.load(bundle, createFolderXml(doc, Folder.ROOT_FOLDER_NAME, Folder.ROOT_FOLDER_ID, null));
    loader.load(bundle, createFolderXml(doc, TEST_FOLDER_1 + "/1", TEST_FOLDER_1, Folder.ROOT_FOLDER_ID));
    assertNotNull(bundle.getFolders().get(encodedRoot));
    assertEquals(encodedRoot, bundle.getFolders().get(encodedRoot).getName());
    assertNotNull(bundle.getFolders().get(encodedTestFolder));
    assertEquals(encodedTestFolder, bundle.getFolders().get(encodedTestFolder).getName());
}