link1.put(Link.LINK_TITLE, "link title");
link1.put(Link.LINK_DESCRIPTION, "link description");
link1.put(Link.LINK_ADDRESS, "link address");
link1.put(Link.LINK_ORDER, link1Order);
Transaction transaction = linkRepository.beginTransaction();
linkRepository.add(link1);
transaction.commit();
Assert.assertNull(linkRepository.getByAddress("test"));
Assert.assertNotNull(linkRepository.getByAddress("link address"));