@Test
public void testAddonRepositoryIsCorrectInMultiViewEnvironment() throws Exception
{
Furnace furnace = LocalServices.getFurnace(getClass().getClassLoader());
Assert.assertNotNull(furnace);
AddonRegistry registry = furnace.getAddonRegistry();
AddonRepository rep1 = registry.getAddon(AddonId.from("dep1", "1")).getRepository();
AddonRepository rep2 = registry.getAddon(AddonId.from("dep2", "2")).getRepository();
AddonRepository rep3 = registry.getAddon(AddonId.from("dep3", "3")).getRepository();
AddonRepository rep4 = registry.getAddon(AddonId.from("dep4", "4")).getRepository();
AddonRepository rep5 = registry.getAddon(AddonId.from("dep5", "5")).getRepository();
Assert.assertEquals(rep1, rep2);
Assert.assertEquals(rep3, rep4);
Assert.assertEquals(rep4, rep5);
}