@Test
public void testAddOwners() throws Exception {

	File file = fileService.createFile("f1", "jpg", "f1", 99);
	assertEquals(1, fileService.getFile(file.getId()).getOwners().size());
	fileService.addOwners(file.getId(), new Owner[] { new Owner(new User("i1")) });
	assertEquals(2, fileService.getFile(file.getId()).getOwners().size());
	List<Owner> owners = fileService.getFile(file.getId()).getOwners();
	assertEquals("i1", owners.get(1).getUser().getUserId());
	fileService.addOwners(file.getId(), new Owner[] { new Owner(new User("i2")) });
	assertEquals(3, fileService.getFile(file.getId()).getOwners().size());
}