// Setup the extension.
String extensionId = "alice-xar-extension";
String oldVersion = "1.3";
String newVersion = "2.1.4";
TestExtension oldExtension =
getRepositoryTestUtils().getTestExtension(new ExtensionId(extensionId, oldVersion), "xar");
getRepositoryTestUtils().addExtension(oldExtension);
TestExtension newExtension =
getRepositoryTestUtils().getTestExtension(new ExtensionId(extensionId, newVersion), "xar");
getRepositoryTestUtils().attachFile(newExtension);
getRepositoryTestUtils().addVersionObject(newExtension, newVersion,
"attach:" + newExtension.getFile().getName());
// Make sure the old version is installed.
getExtensionTestUtils().install(new ExtensionId(extensionId, oldVersion));
// Edit the installed version so that we have a merge conflict.
Map<String, String> queryParameters = new HashMap<String, String>();
queryParameters.put("title", "Alice Extension");
queryParameters.put("content", "== Usage ==\n\n{{code language=\"none\"}}\n"