@Test
public void weightedLinks()
{
Item customer0 = new Item(database, "customer0");
customer0.linkTo("product7", 5);
customer0.save();
customer0 = new Item(database, "customer0");
assertTrue(customer0.getLinks("").containsKey("product7"));
assertEquals((int) customer0.getLinks("").get("product7"), 5);
assertEquals(customer0.weightFor("product7"), 5);